parnurzeal / gorequest

GoRequest -- Simplified HTTP client ( inspired by nodejs SuperAgent )
http://parnurzeal.github.io/gorequest/
MIT License
3.44k stars 414 forks source link

upload one file by mutipart/form-data #245

Open TigoTin opened 4 years ago

TigoTin commented 4 years ago

I want to upload one file by mutipart/form-data, and set fieldName to "file".But if i use func sendFile,it will set fieldName to "file1"

javimudi commented 4 years ago

Hi,

I'm having exactly the same problem. I want to upload a file to S3 and the file attr is required to be called 'file'.

Any update? @TigoTin

Thanks! Best