Hi,
I'm trying to upload to share-online with php and this is the simple code I use:
but it says : no input file;
What I do wrong?
Thanks
I'm trying to upload to share-online with php and this is the simple code I use:
PHP:
$linkSO = "http://".$SessionName21[1]."/upv3.php";
$postfieldsSO = array('username' => 'user', 'password' => 'pass', 'upload_session' => $SessionName21[0], 'chunk_no' => '1', 'chunk_number' => '1', 'filesize' => $sizeFileUPLOAD, 'fn' => '@'.$source_file, 'finalize' => '1');
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $linkSO);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfieldsSO);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$postResultSO = curl_exec ($ch);
curl_close ($ch);
but it says : no input file;
What I do wrong?
Thanks