Click here to Skip to main content
15,886,075 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using the scripts for upload file, the scripts was
PHP
if($_REQUEST[submit]){
$target_path = "upload/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']); 
$file_name = basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path))
 {
 $result=MYSQL_QUERY("INSERT INTO files (File_Id, File_Name) ". "VALUES ('','$file_name')");
    echo "The file ".  basename( $_FILES['uploadedfile']['name']). 
    " has been uploaded";
} else{
    echo "There was an error uploading the file, please try again!";
}

}

but it uploads other type of files, does not upload video files. my video has the size of 50mb. i check out the max_file_upload size, it has 128mb. So can you help me to upload and retrieve?
Posted
Updated 22-Jun-12 2:07am
v2
Comments
Steve Maier 22-Jun-12 11:24am    
Have you loaded other file types that are 50mb in size? It could be a timeout in loading that big of a file.

1 solution

Have you checked the folder permissions?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900