cubiclesoft / jquery-fancyfileuploader

A jQuery plugin to convert the HTML file input type into a fancy file uploader under a MIT or LGPL license. Mobile-friendly too!
58 stars 27 forks source link

Feature request: preload files #12

Closed bouskdav closed 4 years ago

bouskdav commented 4 years ago

Hi,

would be possible to add a feature, so when one initializes the input some existing files on the server could be displayed?

Thanks, cheers, David

cubiclesoft commented 4 years ago

What about using the preinit callback? Not sure what the use-case here is.

bouskdav commented 4 years ago

Could be. But is there an easy way to just pass an object to plugin, so it can display files in table as it does when you upload one?

I mean something similiar to https://stackoverflow.com/questions/15028664/how-to-i-preload-existing-files-and-display-them-in-the-blueimp-upload-table

cubiclesoft commented 4 years ago

If you want to display files in a table that are on the server, shouldn't that be done elsewhere in the user interface? Seems like it would create a rather confusing user experience to show files on the server in the uploader region.

cubiclesoft commented 4 years ago

You can now probably use the postinit callback and then chuck your object into the settings under a non-conflicting name and then handle injecting whatever you need from there.

bouskdav commented 4 years ago

Looks good - I will try and let you know.