Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8421211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:05:18+00:00 2026-06-10T03:05:18+00:00

i have a problem, i want to upload file remote to filefactory,… i sucessfully

  • 0

i have a problem, i want to upload file remote to filefactory,…
i sucessfully login and go to upload page, but when i postfields there is a error: “no file data sent”. Can anyone help please… ?

my code:

//user data
$email="somebody@yahoo.com";
$pass="somepass";
$cookie="cookie.txt";
//url data
$host="http://www.filefactory.com";
$logURL="http://www.filefactory.com/member/login.php";
//postdata
$logPOST="email=".urlencode($email)."&password=".urlencode($pass);
//login
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $logURL);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $logPOST);

curl_exec($ch);
curl_close($ch);
//go to uploads section
$uploadRefferer="http://www.filefactory.com/u/local/?login=1";
$uploadURL="http://upload.filefactory.com/upload.php";
$filename="@test.png";
//try to upload file
$ch=curl_init();
curl_setopt($ch, CURLOPT_URL, $uploadURL);
curl_setopt($ch, CURLOPT_REFERER, $uploadRefferer);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,ALL FIELDS THAT I NEED);
curl_exec($ch);

File test.php is in samo folder with cookie and index.php (thats run this)… trying on localhost, server, but dont work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T03:05:20+00:00Added an answer on June 10, 2026 at 3:05 am

    This will do the work:

    curl_setopt($ch, CURLOPT_POSTFIELDS, Array(
       'redirect' => 1,
       'saveTo' => 0,
       'file' => $filename
    ));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have got a problem with the jQuery File Upload Plugin. I want to
I want to use paperclip plugin to upload the file but the problem is
A wont work problem. I have a XHR file upload to a directory. There
I have this problem: I want to generate a new source code file from
I want to place UItextField in UITableViewCell but I have problem. Text field don't
I have a problem with the filereference class using the upload function. I want
Problem decription: I want to create a file upload screen using JSP. The screen
I have a problem with the following: I want to make a page that
Hi I have a problem in transferring file from server to server I want
I am using GWT/JAVA for development. I have following problem: I want to remove

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.