nst / STHTTPRequest

Obj-C / Cocoa HTTP requests for humans
BSD 3-Clause "New" or "Revised" License
826 stars 75 forks source link

Multiple upload files are combined as one file #46

Open asmusto opened 8 years ago

asmusto commented 8 years ago

Hi, first I want to say thank you, and that this is a great library. Much easier to work with than AFNetworking IMO.

Anyway, I'm having a problem uploading multiple images. The result file (in server with Laravel 5.2) is always a file that has a size of both files. The multiple files were combined as one. I've tested uploading with HTML code and there's no problem, so I assume this isn't a server issue.

I uploaded the files with these methods: addDataToUpload and addFileToUpload I've tested with iOS 10 and iOS 8.4 and it's the same.

I've tested with AFNetworking, and the files were sent correctly and not combined.

Is there any special instruction that I'm missing? Or is it a bug?

Thanks.

nst commented 8 years ago

Thank you for raising the issue.

I'm very busy these days, so I'll reply by the end of October.