Hi,

I'm trying to upload to share-online with php and this is the simple code I use:

PHP Code: 
$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($chCURLOPT_URL$linkSO);
curl_setopt($chCURLOPT_POST1);
curl_setopt($chCURLOPT_POSTFIELDS$postfieldsSO);
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
$postResultSO curl_exec ($ch);
curl_close ($ch); 
but it says : no input file;

What I do wrong?

Thanks
skinner Reviewed by skinner on . Upload to Share-online with cUrl Hi, I'm trying to upload to share-online with php and this is the simple code I use: $linkSO = "http://".$SessionName21."/upv3.php"; $postfieldsSO = array('username' => 'user', 'password' => 'pass', 'upload_session' => $SessionName21, 'chunk_no' => '1', 'chunk_number' => '1', 'filesize' => $sizeFileUPLOAD, 'fn' => '@'.$source_file, 'finalize' => '1'); $ch = curl_init(); Rating: 5