How to change url dropzone? URL dynamically with ajax success

前端 未结 5 1441
青春惊慌失措
青春惊慌失措 2021-01-04 12:35

I read this: https://github.com/enyo/dropzone/wiki/Set-URL-dynamically but i dont got success... :( I have 1 form...

And i send the inputs with ajax.

The aj

5条回答
  •  生来不讨喜
    2021-01-04 13:19

    You may add a function on dropzone's "processing" event listener.

    Dropzone.options.myDropzone = {
      init: function() {
        this.on("processing", function(file) {
          this.options.url = "/some-other-url";
        });
      }
    };
    

    Here is the link where I got the code and it works for me: https://github.com/enyo/dropzone/wiki/Set-URL-dynamically

提交回复
热议问题