danielm / uploader

A lightweight and very configurable jQuery plugin for file uploading using ajax(a sync); includes support for queues, progress tracking and drag and drop.
https://danielmg.org/demo/java-script/uploader
MIT License
1.17k stars 384 forks source link

Allow dynamic changes of extraData #25

Closed davidearl closed 6 years ago

davidearl commented 9 years ago

As it stands it's impossible to send e.g. the value of a checkbox along with the files - my example was to have a 'allow file replacement' box, but this only works if you can examine the checkbox as the file is dropped. My solution I think is more general than Fazioli's by allowing the values in the extraData to be functions, and if they are to call them as the formData is created and use the return values for the value of the parameter.

danielm commented 9 years ago

Very interesting, hopefully i'll be able to catch up with merges and other project related tasks next weekend.

Thanks

boynet commented 8 years ago

@danielm anything new about it? its so simple fixes that you can just accept without worry like https://github.com/danielm/uploader/pull/37 https://github.com/danielm/uploader/pull/33

kirschbaumj commented 7 years ago

Any update on this? As the OP noted, it's impossible to pass any dynamic data, such as an ID, along with the file as it currently sits.

Achieve777 commented 7 years ago

thank you very much @davidearl , but the code hadn't been update