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: Thu, 13 Mar 2008 15:41:23 -0600
Also, for what it's worth, I can hit the server just fine at the
command line with:
curl -F "file=@mypic.jpg;filename=7195554321_1_20080311132327_jpg"
http://server:8080/php/post.php
...yet for some reason the NSURLRequest approach fails. Any/all tips
are welcome.
On Thu, Mar 13, 2008 at 3:02 PM, Tom Harrington <email@hidden> wrote:
> On Thu, Mar 13, 2008 at 2:50 PM, Tom Harrington <email@hidden> wrote:
> > [postBody appendData:[[NSString stringWithString:@"Content-Type:
> > null\r\n\r\n"] dataUsingEncoding:NSUTF8StringEncoding]];
>
> Someone asked about this. FYI, "null" is what the other clients use,
> but if I use "image/jpeg" it fails in exactly the same way.
>
>
>
> --
> Tom Harrington
> email@hidden
> AIM: atomicbird1
>
--
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