hxzpily / in-spirit

Automatically exported from code.google.com/p/in-spirit
0 stars 0 forks source link

Uploading multiple files with MultipartURLLoader #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add two or more file to the MultipartURLLoader.
2.
3.

What is the expected output? What do you see instead?
I want all files to be uploaded, but only one does.

What version of the product are you using? On what operating system?

Please provide any additional information below.
In the beginning of getFilePartHeader method, line 5, code:
-   bytes = 'Content-Disposition: form-data; name="Filedata"';
should be changed to:
-   bytes = 'Content-Disposition: form-data; name="' + part.dataField + '"';

After this small fix MultipartURLLoader loads all my files.

Thanks Eugene!

Original issue reported on code.google.com by Vic...@fora-soft.com on 20 Feb 2012 at 7:24