• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: File upload with NSURLRequest fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >File upload with NSURLRequest fails (From: "Tom Harrington" <email@hidden>)
 >Re: File upload with NSURLRequest fails (From: "Tom Harrington" <email@hidden>)

  • Prev by Date: Re: Best Way To Lookup From a Huge Table
  • Next by Date: weak linking of ImageKit framework
  • Previous by thread: Re: File upload with NSURLRequest fails
  • Next by thread: Re: File upload with NSURLRequest fails
  • Index(es):
    • Date
    • Thread