Uploading large files timing out

8 posts by 4 authors in: Forums > CMS Builder
Last Post: November 12, 2009   (RSS)

By jtedescojam - October 1, 2009

I've found in other forums that when uploading large pdf's and jpgs in excess of about 2 or 3MB, the cms seems to be timing out and cutting the transmission. I am trying to upload a pdf 11.5MB large and every time I attempt to upload the 'iframe' window that shows the upload screen turns into the cmsb home page, so it's like a picture-in-picture of the login screen. I have to refresh the page to clear it. The recent posts explained this occurs due to a limit within the php.ini file... I believe this is the code in the php.ini file that needs to be adjusted, however below is what I've changed it to... (and I changed it in both php.ini files for phpv4 and phpv5.

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

max_execution_time = 600 ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data
memory_limit = 100M ; Maximum amount of memory a script may consume (8MB)

I've posted my entire php.ini file in a previous discussion here in case you need to see it:

http://www.interactivetools.com/iforum/Products_C2/CMS_Builder_F35/gforum.cgi?post=74717;search_string=upgrading%20cmsb;t=search_engine#74717
John Tedesco

Creative Director



JAM Graphics

Re: [jtedescojam] Uploading large files timing out

By Dave - October 2, 2009

Hi jtedescojam,

What does it say when you go to: Admin > General Settings > Show server upload limits
(This link is just below the "Upload Folder URL" field)

Let me know and do our best to help!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Uploading large files timing out

By jtedescojam - October 3, 2009

oh.....

file_uploads: Enabled
max_input_time: 600
post_max_size: 8M
upload_max_filesize: 2M

how do I change?
John Tedesco

Creative Director



JAM Graphics

Re: [jtedescojam] Uploading large files timing out

By Kenny - October 3, 2009

Those are settings set within the server itself.

If you are on a dedicated or cloud server, your host should have no problems changing the limits for you.

If you are on shared hosting, the host may not want to change it for you as it might change it for all their users.

Let us know what they say and if it fixes the problem.


Kenny

Re: [jtedescojam] Uploading large files timing out

By Dave - October 5, 2009

You want to change the lowest value:

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Change it and post_max_size to 100M and then check about under Admin > General and see if the values have updated. Then try uploading a large file again.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Uploading large files timing out

By jtedescojam - October 5, 2009

Thanks Dave.. I'm waiting for my hosting provider to get back to me.
John Tedesco

Creative Director



JAM Graphics

Re: [Dave] Uploading large files timing out

By jtedescojam - October 6, 2009

So to close off this discussion properly... it WAS the hosting provider.. and they did have to increase it manually on the server end.

Here is their explanation for why it can still possibly not work:

However, you may not be able to upload files of that size, due to the maximum script execution time which is enforced on our servers. If a script does not complete, it will time out. This value can not be changed for individual users in our shared hosting environments - it could lead to resources being unfairly allocated. I am sorry for any inconvenience that this may cause.

So Kenny's probably right that you would need a dedicated server in order to increase that limit.

Thank you guys for your assistance. awesome.
John Tedesco

Creative Director



JAM Graphics