SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    Grapevine
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Upload file from http post

    I have a host that I have very little control that is sending an http post that contains images, and file information. I am able to view this information with the help of the getallheaders() function that contains the follwing array values: ("Basic cm9vdDpzYXZ5Y2F0X2Jvb3N0ZXI=", "attachment; filename=image02048.jpg", "12389", "image/jpeg", "shttpclient $Revision: 1.28 $", "a", "s").

    I assume that the first value is the actual image, and the rest of the values are file parameters. My goal is to save the file to a specified directory. I have a good deal of experience uploading files via html form enctype='multipart/form-data' and writing these files to anywhere in the file system, but I have no experience with the getallheaders() function or what to do with the array except parse out the values.

    TIA - cmc

  2. #2
    SitePoint Addict
    Join Date
    Apr 2004
    Location
    Melbourne
    Posts
    362
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's wrong with using the standard enctype='multipart/form-data' method?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •