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

How can i call delete file manully and showing files at update time #22

Closed Asifkrishaweb closed 3 years ago

Asifkrishaweb commented 3 years ago

Hello

i uploading a file on /temp folder when clicking on a tick upload button but after that if i click delete button that file should be delete from /temp folder, so how can i call that delete button at my own.

and second thing

how can i show/add already uploaded file at edit time in file preview queue

please help for the same

Thank you so much

cubiclesoft commented 3 years ago

The "delete" button just removes the item from the upload list so it doesn't clutter the UI. It's not intended to be used for removing files from the server. Your application should track upload completion and update your own UI with such features.

Not sure how one would detect already uploaded files (in general). A user might have two files that are named the same in different directories and want to upload both. You could hash the file, send the hash to the server, and the server could respond in the affirmative. The example in the documentation that shows obtaining a security token could be adapted for the purpose.

By the way, issue trackers are not for Q&A. They are for reporting bugs and sometimes feature requests.

brodrigz commented 1 year ago

Could be done with this PR