javascript - How to upload several files into different servers at a same time using html -


In my HTML form, I'm uploading several files to the server:

  & Lt; Form action = "$ {uploadUrl}" method = "post" encrypt = "multipart / form-data" & gt; & Lt; Input type = "file" name = "myFile" multiple & gt; & Lt; Input type = "submit" value = "submit" & gt; & Lt; / Form & gt;  

However, I want to add a condition to the size of the uploaded file. If the file is less than 1 MB, then I want to upload it to a different uploadUrl and if it is larger than that, then I would like to upload it to another URL. How can I achieve this? When I upload many files at the same time, it becomes even more difficult.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -