Now I am looking for complete upload script for uploading the videos on the server. ( It could have progress bar and also proper way of handing internet connection if goes down for few seconds..)
Are there already such scripts or good set of stacks available which one could purchase ?
Here is the sample code I tried but does not work well..
Code: Select all
put baseURL & "/uploadVideo.php" into urlString
post url("binfile:" & nameOfFile) to URL (urlString)
Code: Select all
<?php
set_time_limit(3600);
$filename = $_FILES['userfile']['name'];
if($_FILES['userfile']['error']!= UPLOAD_ERR_OK){
error_log("failed");
}
if(move_uploaded_file($_FILES['userfile']['tmp_name'], "./".$filename)){
echo 'Your file upload was successful'; // It worked.
}
else{
echo 'There was an error during the file upload. Please try again.'; // It failed :(.
}
?>
Thanks
Best Regards
Pradeep