OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

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

Open MikeAlhayek opened this issue 2 years ago • 3 comments

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.

MikeAlhayek avatar Jul 02 '22 19:07 MikeAlhayek

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

hishamco avatar Jul 08 '22 22:07 hishamco

@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.

MikeAlhayek avatar Jul 08 '22 23:07 MikeAlhayek

No problem, I will have a look

hishamco avatar Jul 09 '22 06:07 hishamco