-
-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove MultiUpload Dialog #13851
Remove MultiUpload Dialog #13851
Conversation
@bezumkin Awesome! Does it also support selecting multiple files and moving them by drag/drop to another folder? |
@joeke No. It is too complicate to do it with ExtJS for me. |
Awesome job @bezumkin |
@bezumkin nice PR! But can you make it a little more user friendly with a message like 'Or drag n drop files here' like something on the screenshot I did send to you by WhatsApp? A normal website editor (a noob) won't know you can upload (multiple) files with drag n drop on that spot? |
@bezumkin I will try to make an example.
thats why MODX 3 is there to make the UI better right? ;-) |
@bezumkin how does it work with other RTE editors? It is the same browser so it will work for all RTE editors I guess? |
@Oetzie It should, because I changed the common browser view, that used by other components! But I hope somebody with test this PR with his favourite RTE. |
@bezumkin Could you test it with https://github.com/Oetzie/TinyMCE? |
@Oetzie It works! |
@bezumkin Awesome! |
@Oetzie Added background image This don't require changing of ExtJS panels and lexicons but, I hope, pretty understandable. Image was made by @sipkogroefsema |
I tested functionality locally all seems working well! One side effect detected. This also exists in repo 2.*. This component is used in the tree.directory component but without the defined setting of 'permitted_extensions'. Side effect: User behaviour: Real outcome: Solution: Possible solution; And the tree.directory component update's the 'permitted_extensions' of MultiUploadDialog.Upload when the resource combobox is changed by the user. |
@bezumkin thnx for your feedback. Correct me if I'm wrong, but still some weird behaviour can appear for the user. For example; Me as a webmaster define a media source which only accepts png/jpg by setting the 'allowedFileTypes'. I don't know if this is desired behaviour and second of all if this is or was a conscious design desicion. |
Yes, you are right. I will think how to fix it. |
My 2 cents I think the best way to controll the mediasources on a proper level is to define properties in the media source it self which effect the upload. I think if we start to support per mediasource which extensions are allowed to upload. Per mediasource decide what is allowed to upload and which usergroups can access the mediasource. And treat the settings as a cascade. mediasource extension property defined? yes -> mediasource property leading in upload I think this gives the possiblity to keep it reverse compatible and letting developers start to use this meganisme if desired. Overall thumbs up for the rewrite the upload experience looks way better than before, thnx for that! |
@Atid I agree with you, but I think that it is question to Media Sources, not to Upload component. I suggest you to create a new issue about it after merging both of them to 3.x branch, because it is definitely needs to have a discussion. |
@bezumkin I agree with you this topic is touching both merges. When both are merged I will open a issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a lot of testing and did find some small things, but nothing that should prevent this from being merged. That can be part of alpha/beta testing if you ask me.
- Disabled use of Flash for upload and removed its files. - Removed MultiUpload Dialog because it requires too many actions from user. - Upload button now opens browser upload dialog. - Added drop zones in Packages and Media Browser panels. - Added ability to delete multiple files in Media Browser. - Added background image for drag-n-drop panel
@gpsietzema Sorry, I rebased this PR to make it easier to merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work Vasily!
What does it do?
Why is it needed?
To improve user experience when working with files.
Related issue(s)/PR(s)
N/A
Demo
Click to images to see this changes in action