|
Joined: Jun 2002
Posts: 63
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 63 |
Alright, I have a problem with the upload feature. Whenever any of my members try to upload anything over say 1.5-2MB ubbt says it uploads it, but when you go back to click the attachement link it comes up an invalid link. At first I thought my file size in the settings was too low so I jacked it up to some astronomical number (think it was 1 trillion) and it still did the same thing. Any help would be appreciated  .
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
1) There's are a couple of upload limits in php.ini, and those would override the limit in threads' config settings. Here are the default settings for PHP 4.1.2:
; Maximum allowed size for uploaded files. upload_max_filesize = 2M
; Maximum size of POST data that PHP will accept. post_max_size = 8M
2) Exactly what value are you using for the upload limit? There might not be a range check on that, so if it's too big, it might "wrap around" to a small value or negative value.
3) What's your threads version?
Last edited by Dave_L; 12/07/2002 1:44 PM.
|
|
|
|
Joined: Jun 2002
Posts: 63
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 63 |
1) I'll have to check
2) right now I have the upload limit at 100,000,000 bytes
3) I'm using 6.1.1
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
I assume you mean "100000000"? I think 100 million should be ok, but I would lower it to a more reasonable value, maybe 5 or 10 million.
But my guess is that the upload_max_filesize = 2M limit is being hit.
|
|
|
|
Joined: Jun 2002
Posts: 63
Junior Member
|
Junior Member
Joined: Jun 2002
Posts: 63 |
That seems to be it....the upload_max_filesize in php is set at 2097152. You can check out the pic here of the settings.
|
|
|
|
Joined: Aug 2002
Posts: 1,191
Kahuna
|
Kahuna
Joined: Aug 2002
Posts: 1,191 |
Pinion,
You might want to see the setting of the php script timeout (I think it is also in the php.ini).
If your users want to upload a file that is 1Mb = 1,000,000 (roughly) bytes, then that means that it is 8,000,000 bits.
With a normal connection of 40Kbps (modem) you need (8,000,000 / 40,000) 200 seconds to upload it minimum. If your max_execution_time (or something like that is set to something small you might have a problem.
I had the same issue with photopost, in which you upload pictures (files) and it was this setting that did the trick for me.
Warm regards
Nikos
Nikos
|
|
|
|
Joined: Jun 2003
Posts: 1,025
Junior Member
|
Junior Member
Joined: Jun 2003
Posts: 1,025 |
My host doesn't use php.ini or conf.d Running php version 4.3.2 This is what I ended up using in my .htaccess:
<IfModule mod_php4.c> php_value max_execution_time 1200 php_value memory_limit 200M php_value post_max_size 200M php_value upload_max_filesize 200M </IfModule>
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|