Jump to content

upload of large file help


dsjoes

Recommended Posts

i have an upload form that lets me upload files but when i try to upload a file 116mb i get a 500 error. i have changed the following in the php.ini but it still does it.

 

    upload_max_filesize = 150M

    post_max_size = 150M

    memory_limit = 150M

 

<?php
   
if(isset($_FILES['upload'])){
$target = "uploads/".basename($_FILES['upload']['name']) ;
print_r($_FILES);

if(move_uploaded_file($_FILES['upload']['tmp_name'],$target)) echo "OK!";

}
else{

}
?>

Link to comment
https://forums.phpfreaks.com/topic/242882-upload-of-large-file-help/
Share on other sites

I have looked through the log files but there are none to do with the upload script errors and none are from around the the time i got the error.

 

I have tryed changing them to the below but it is still the same

post_max_size = 450M

memory_limit = 900M

upload_max_filesize = 150M

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.