• 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: 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

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

  • Prev by Date: Re: Order of resulting selector invocations from performSelector
  • Next by Date: Re: Accessing memory out of set memory limit
  • Previous by thread: Re: File upload with NSURLRequest fails
  • Next by thread: Best Way To Lookup From a Huge Table
  • Index(es):
    • Date
    • Thread