Jump to content

Php File Uploads


kf4zmt
 Share

Recommended Posts

I have a simple php file upload form for uploading files to my site. I am unable to upload files larger than 8 MB even though I have the following in my .htaccess file:

 

php_value post_max_size 40M

php_value upload_max_filesize 20M

php_value max_execution_time 800

php_value memory_limit 40M

 

I have used tcpdump (on the client side) to sniff the upload. The TCH server sends "Reset" packets that kills the upload on files 8MB or larger. The file upload isn't timing out, its being killed from the TCH server. Files smaller than 8 MB upload great.

 

Any ideas why I'm encountering this limit?

Link to comment
Share on other sites

>php_value upload_max_filesize 10M

 

That should be all you need in your .htaccess file to allow 10-meg files to be uploaded. This has worked for other users.

 

Just add the one line and change 10M to the size file you will allow. If it does not work, please open a ticket with the help desk.

Link to comment
Share on other sites

Is 10M the max file size that TCH will allow to be uploaded?

 

>php_value upload_max_filesize 10M

 

That should be all you need in your .htaccess file to allow 10-meg files to be uploaded. This has worked for other users.

 

Just add the one line and change 10M to the size file you will allow. If it does not work, please open a ticket with the help desk.

Link to comment
Share on other sites

I think Bruce's message means that you can change it to whatever you want. 10MB was just an example.

 

If changing that one line only doesn't do what you need, then you can open a help desk ticket and they will look into it for you.

Link to comment
Share on other sites

According to the Help Desk, there is an 8 MB limit. See the email below I just received from them.

 

Hi,

 

Please be advised that your domain is hosted on a shared server that will not allow to upload a file higher than 8 Mb through scripts. Please use ftp for uploading a file that is having size more than 8 Mb. If you try to upload big files will create load issues and might get the account suspended as apache shows load easier.

 

Thank you for choosing TotalChoiceHosting.

---

Alex Spaford

Technical Support

TotalChoiceHosting LLC.

 

Ticket Details

===================

Ticket ID: BXW-891144

Department: Technical Support

Priority: --

Status: Closed

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

 Share

×
×
  • Create New...