Re: File upload with NSURLRequest fails
Re: File upload with NSURLRequest fails
- Subject: Re: File upload with NSURLRequest fails
- From: "Tom Harrington" <email@hidden>
- Date: Fri, 14 Mar 2008 09:49:10 -0600
On Fri, Mar 14, 2008 at 12:43 AM, Ben Lachman <email@hidden> wrote:
> I do this with a perl script on the back end. My experience was that
> its was more cajoling the perl script into working that the PHP side,
> but that may be because I'm not much of a perl wizard (maybe only
> level 8 or so :-). I found it was important to declare a filename if
> you're transferring data like this.
After much close looking, someone told me to count the dashes. Turns
out I was using the wrong number for my multipart boundaries. The
actual boundaries need to have two more dashes than the boundary
declaration in the content-type header. Once I fixed that, my code
worked.
--
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden