TinyPortal

Development => Support => Topic started by: gffb on May 30, 2007, 06:26:07 PM

Title: Large Uploads
Post by: gffb on May 30, 2007, 06:26:07 PM
Hi there,

My board is SMF 1.1.2 TP 0.98 all running well apart from when I go to upload largish files, I habe set file size limit to 90000kb and when uploading a file of around 3mb I get the following.

An Error Has Occurred!
The upload was not able to complete.This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information.

Any ideas
Title: Re: Large Uploads
Post by: G6Cad on May 30, 2007, 06:36:09 PM
Most likly your server thaat needs to be configurated to accept bigger files, and at the same time change the time limit the file takes to upload, they sort of go hand in hand.

If you do a search for "php.ini" you will find the info you need to know.
Title: Re: Large Uploads
Post by: gffb on May 30, 2007, 06:40:37 PM
Ok did a search for php.ini and only got this post up.....LOL

I have made a few changes in it but still no luck this is what I changed.

What I had
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

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


What I changed it to
;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

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


Also...

What I had
; Maximum size of POST data that PHP will accept.
post_max_size = 2M


What I changed it to
; Maximum size of POST data that PHP will accept.
post_max_size = 20M


Still no luck any further help or direction to look :)
Title: Re: Large Uploads
Post by: G6Cad on May 30, 2007, 06:44:29 PM
When you seartch you need to do it from the board index, not with in the topic.
Do the search again and this time from the forum index and i can promisse you a lot more hits  :D
Title: Re: Large Uploads
Post by: gffb on May 30, 2007, 06:45:36 PM
My apologies that worked much better thanks :)
Title: Re: Large Uploads
Post by: G6Cad on May 30, 2007, 06:46:03 PM
Your welcome  ;)
Title: Re: Large Uploads
Post by: Lesmond on May 30, 2007, 08:01:12 PM
So gffb did you sort out your problem? and if so would you be so kind as to post here what you did, and what helped you :)
Title: Re: Large Uploads
Post by: gffb on June 02, 2007, 02:37:14 AM
Sorry for that yes I did sort it out the way I solved it was to do the changes to the php.ini file but upload it to the directory that I have smf and TP installed, that way the forum uses that php.ini file not the standard generic one in my root folder.
Title: Re: Large Uploads
Post by: psybertech on June 02, 2007, 02:42:19 AM
/Faint...   I never thought of that!  Thank you!!!

Quote from: gffb on June 02, 2007, 02:37:14 AM
Sorry for that yes I did sort it out the way I solved it was to do the changes to the php.ini file but upload it to the directory that I have smf and TP installed, that way the forum uses that php.ini file not the standard generic one in my root folder.
Title: Re: Large Uploads
Post by: Lesmond on June 02, 2007, 02:44:21 AM
Yes I should of stated that before, it needs to be placed in the smf/forum folder :( thanks for letting us know :)
Title: Re: Large Uploads
Post by: IchBin on June 02, 2007, 04:50:03 AM
As a note, others should also know that not all hosts allow this.