forked from dropzone/dropzone
-
Notifications
You must be signed in to change notification settings - Fork 0
Set URL dynamically
enyo edited this page Dec 17, 2014
·
2 revisions
If you need to change the URL dropzone posts to dynamically for each file, you can use the processingfile event and change the options.url.
Example:
<form id="my-dropzone" action="/some-url" class="dropzone"></form>
<script>
Dropzone.options.myDropzone = {
init: function() {
this.on("processing", function(file) {
this.options.url = "/some-other-url";
});
}
};
</script>- Dropzone already attached
- Large files not uploading
- Some image thumbnails aren't generated
- Show error returned by server
- Notification when all files finished uploading
- Add button to remove file preview
- Submit additional data
- Show info after file uploaded
- Show files already on server
- Use own
confirmimplementation - Limit the number of files
- Provide a thumbnail for files
- Reject images based on dimensions
Tutorials