Does the USB flash drive always send the "File name" parameter when downloading a file?

I tried two components of Flash upload, swfupload and uploadify, and both seem to generate POST with the "Filename" parameter. My problem is that the service I'm sending has a strictly defined set of allowed parameters, and the file name is not one of them.

So, is it possible to remove this parameter from the message at all?

+3
source share
1 answer

A quick look at the docs shows that you can change uploadDataFieldNamewhich, by default "Filedata", by setting the second parameter to the method upload(). The docs don't say anything about the parameter Filename, so I guess not.

+1
source

Source: https://habr.com/ru/post/1729545/


All Articles