Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.