-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fileName not respect when the image is drag&dropped (#6960)
Contrary to all the other uploads we have, when uploading an image to the editor via drag&drop without an image block previously created the file name of the image we upload is not respect. The fileName is now passed from the transform to the region where we upload via the al attribute. using the alt attribute seems the best approach because using the URL attribute is not possible. Url is being used to store the blob and if we change like append '?fileName=' the browsers start ignoring the blob URL. Given that we pass the file via URL attribute from the transform to the upload code passing the fileName in the alt attribute seems the most logical way.
- Loading branch information
1 parent
400f8fc
commit 8e7682b
Showing
3 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters