upload multiple files in one request Dropzone sending two requests

后端 未结 6 2049
说谎
说谎 2020-12-18 20:56

I am trying to send multiple files in one request using DropZone js.

Here\'s my code :

Dropzone.autoDiscover = false;

var myDropzone = new Dropzone(         


        
6条回答
  •  青春惊慌失措
    2020-12-18 21:27

    I can see it is very old post, however, I will answer hoping it might help someone.

    2 requests

    1. OPTIONS - no files
    2. POST - with files

    Chrome will do a pre-flight request(OPTIONS) to look for CORS headers. It is a standard which almost all latest browsers follow.

提交回复
热议问题