NSURLConnection Content-Disposition:

Discussion in 'Mac Programming' started by hiddenpremise, May 31, 2009.

  1. macrumors regular

    hiddenpremise

    Joined:
    Jul 25, 2008
    Location:
    Somewhere between my imagination and reality
    #1
    I am trying to upload a sqlite3 database. What Content-Disposition: should I to be able to access the database through the $_FILES[] env var in php? I have tried "form-data", but that just posts it to a POST and REQUEST var. I am so lost...
     
  2. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    This is the string format I used for file uploads which has worked.
    Code:
    @"Content-Disposition: form-data; name=\"%@\"; filename=\"%@\"\r\n\r\n"
     

Share This Page