FineUploader / fine-uploader

Multiple file upload plugin with image previews, drag and drop, progress bars. S3 and Azure support, image scaling, form support, chunking, resume, pause, and tons of other features.
https://fineuploader.com
MIT License
8.18k stars 1.87k forks source link

Feature Request: Re-order images with drag n drop. #2046

Open markskayff opened 6 years ago

markskayff commented 6 years ago

Type of issue

Uploader type

Note: Support requests cannot be accepted due to lack of time.

Feature Request: Allow to re-order images in the drag n drop area updating an index attribute in them
Feature Request: Allow to re-order images in the drag n drop area updating an index attribute in them #### Feature request details Add the possibility of re-ordering images once uploaded. Assign an index to every image and allow re-ordering them through drag n drop. We are building this interface where first we are uploading the images to our local server, and then later after posting a form, this images will fly to a remote location. As part of the requirements for the job we have "the chance of ordering the uploaded images before submitting"
singhjusraj commented 6 years ago

Would you be willing to open a PR with changes?

markskayff commented 6 years ago

Hi SinghSukhdeep,

Yeah, maybe it'd be an option. Thanks for your comment, I'll consider it.

singhjusraj commented 6 years ago

Although I don't actually see how would this be beneficial. Ordering the images in the UI doesn't really matter as this order wouldn't sustain once images go to your server. I don't quite understand what exactly you are trying to do, can you maybe clarify a bit. Otherwise I don't see this being implemented ever.

markskayff commented 6 years ago

Yes, it does matter. We have an web app where we upload images to a remote server. The user will be able to select the images order, these are sent in a specific order to the server, and it's how they are displayed in the remote application. So it does matter.

rnicholus commented 6 years ago

these are sent in a specific order to the server

Instead, I'd suggest including some metadata/params to send along with each file to indicate the "order". You can build ordering into the UI, but without changes to the uploader code as well, they won't actually upload in the new order. I don't anticipate this being a simple change either, and probably not worthwhile to introduce that sort of additional complexity into the codebase with only one use case.