Jump to content

Recommended Posts

hello.. when i try to upload a file larger than, say 3 MB, it seems as though my script times out... it takes a while, so it looks like it's uploading the entire thing, but when it should say "file uploaded successfully" i get "error: no files uploaded"

 

any ideas?

<form enctype="multipart/form-data" action="update_humor_video.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="399999999999" />
<input name="category[]" type="radio" value="random" /> - random<br />
<input name="category[]" type="radio" value="whoseline" /> - whoseline<br />
<input name="category[]" type="radio" value="mac_ads" /> - mac_ads<br />
<input name="category[]" type="radio" value="snl" /> - SNL<br /><br />
Please choose a video file:<br /><input name="uploaded_video" type="file" /><br />
Please choose a thumbnail:<br /><input name="uploaded_thumb" type="file" /><br />
<input type="submit" value="Upload" />
</form>

Link to comment
https://forums.phpfreaks.com/topic/83736-upload-script-timing-out/
Share on other sites

Even though you are setting MAX_FILE_SIZE to something large enough for your file, php has two settings that will affect the maximum file size:  upload_max_filesize and post_max_size.  Both of these must also be set large enough to accommodate your file.

ok... so i would have to get a hold of the server admin and have him change the settings since i don't have access? or is there a way around that? i tried http://drupal.org/node/113220 this, but it didn't locate the php.cgi file, so no dice on it... any other ideas?

 

Thanks for all the help, guys!

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.