-1

I'm trying to send an UIImage and some extra parameters through POST.

I've tried the answer to this question with no success:

The HTML form equivalent would be the following (it works):

<form method="POST" action="UploadURL" enctype="multipart/form-data">
   <input type="file" name="pic">
   <input type="submit" value="upload">
   <input type="hidden" name="param1" value="param1value"/>
   <input type="hidden" name="param2" value="param2value"/>
</form>

Thanks in advance.

Community
  • 1
  • 1
Deivuh
  • 204
  • 3
  • 11

1 Answers1

0

I've just wasted so many hours... It seems that the people I've been working with gave me a wrong URL, which gives the same response for anything. I've just wasted so many hours on this.

Please refer to this question for a good answer for uploading images using POST request.

Community
  • 1
  • 1
Deivuh
  • 204
  • 3
  • 11