Jump to content

Problems Uploading PDF


Thurrock

Recommended Posts

Hi Everyone

 

I am banging my head against the wall with a problem where I am trying to upload an array of file types but keep getting Internal Server Errors when uploading PDF files

 

I can upload images and word docs and spreadsheets but PDF is not working for me, have tried various different files and file sizes but still the same.

 

I have a form:

<form action="modules/docman/upload.php" enctype="multipart/form-data" method="post">
<input type="file" name="pic" id="pic">
<input  type="submit" name="submit" value="Upload File">
<input type="hidden" name="MAX_FILE_SIZE" value="20000000">
</form>

I have simply tried to dump the file array in an effort to eliminate server side script causeing the problem and still get the Internal Server Error

var_dump($_FILES["pic"]);
exit;

The server environment is in my control, could be this but not too sure how, where and why.

 

Any help would be very much appreciated.

Link to comment
Share on other sites

Hi I think I have found the error:

[Mon Mar 31 14:08:39 2014] [warn] [client xx.xx.xxx.x] mod_fcgid: HTTP request length 131400 (so far) exceeds MaxRequestLen (131072), ...

This looks like a Fast CGI issue, not sure how is best to resolve this

 

 

Thanks

Link to comment
Share on other sites

MaxRequestLen is currently capped to 128KB. Your file upload is exceeding this cap which is causing the 500 Internal Server Error.

 

 

 

The server environment is in my control

If you have access to the servers config, then you need to increase the current cap set for MaxRequestLen so it is greater than 131072 bytes  (128KB) to allow for your file uploads

Edited by Ch0cu3r
Link to comment
Share on other sites

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.