SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Moving File with Curl

    I'm using an Ajax file uploader to upload to a PHP script. All I want the PHP script to do is forward on the uploaded image to my user's Facebook account.
    To do this, all I need to do is POST the image to a Facebook url (using Curl).

    Will I need to save the image on my server, then use Curl to move it,(deleting it afterwards) or can I use Curl to move the upload straight into a POST request without saving it?

  2. #2
    SitePoint Wizard tgavin's Avatar
    Join Date
    Feb 2003
    Location
    FL
    Posts
    1,051
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to upload it to the server first.

  3. #3
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, thanks. I was just concerned that there might be a faster way, but it seems fine like that anyway


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
  •