OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.44k stars 2.4k forks source link

Auto select uploaded files to be inserted on the media file (Enhance Media field) #11940

Open MikeAlhayek opened 2 years ago

MikeAlhayek commented 2 years ago

Is your feature request related to a problem? Please describe.

Currently when using the media field, the user upload a new file, but then have to manually select the file and hit "Ok" to actually add the uploaded file to the content item. If the user does not select the files after uploaded, the files will not be added to the content-item.

Describe the solution you'd like

I think when a user clicks on media field to add files to the content item, its likely to upload a new files to attach. If the user upload new files, these files should be selected by default "after they are uploaded" so when the user clicks "Ok" button, the uploaded file will be added to the content-item "unless they deselect the file for some reason." But most likely one would upload a file at that point to select them/

Also, any new file uploaded, should appear on the very top of the file list so the user can see these files being uploaded instead of scrolling up/down to find them.

hishamco commented 2 years ago

Make sense, @CrestApps are you planning to submit a PR for this?

MikeAlhayek commented 2 years ago

@hishamco I am not familiar with Media part to be able to make the change. If no one get to it and time permits I will dig in the code and create PR but it won't be any time soon.

hishamco commented 2 years ago

No problem, I will have a look