pekebyte / pekeUpload

jQuery html5 file uploader plugin
http://pekebyte.github.io/pekeUpload
Other
82 stars 73 forks source link

How to change data after initialization #7

Closed MathTV closed 9 years ago

MathTV commented 11 years ago

After the upload tool initializes, users can set some options for upload (e.g., overwrite existing files) and these options must be passed in the data variable. If I simply repeat the pekeUpload init, it creates a second upload button. How can I destroy the first one and replace with a second?

MathTV commented 11 years ago

Well. For now I simply re-write the input control that was originally enhanced with pekeupload: $("#peke-container").html('');