This is my normal file upload code.
HTML
You're trying to make remote upload but wihthout option to reupload it to your server? Why don't you just send your form to your uploading place & proccess it there? It's fastest and the best solution..
Try this:
$ch = curl_init("http://www.remotepage.com/upload.php");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CUROPT_POSTFIELDS, array('fileupload' => '@'.$_FILES['theFile']['tmp_name']));
echo curl_exec($ch);