Help - Search - Member List - Calendar
Full Version: file size
Krazy Letter Forums > Members stuff > Computer Programs > PHPKImageHost > Help!
sum
HI all,

I have set my file size to the maximum of 3mb but when i try to upload a bmp (yes i allowed the file type) which is 2.5mb, it says it is to big.

so i did some testing and set the maximum file size really high and it still came up with to big. i ended up setting it as 8000mb and it still said it was to big. so im stumped, please tell me how i can fix this issue,

Thanks.

EDIT: just noticed i did a booboo in the titles description and i cant edit lol.
sum
so many views yet no answers to this lol.

Any idea anyone?
guitar_freak22
Well...double posting is against the rules...but is the option sticking when you change it? You need to give more detail, as in what you are talking about, and all the options it gives you.
Mario
QUOTE(sum @ Aug 6 2006, 12:13 AM)
HI all,

I have set my file size to the maximum of 3mb but when i try to upload a bmp (yes i allowed the file type) which is 2.5mb, it says it is to big.

so i did some testing and set the maximum file size really high and it still came up with to big. i ended up setting it as 8000mb and it still said it was to big. so im stumped, please tell me how i can fix this issue,

Thanks.

EDIT: just noticed i did a booboo in the titles description and i cant edit lol.
*


i don't get what your trying to say unsure.gif
Mynck
I think lappy512 is really the only one here who knows the code well enough to solve your problem.
Mario
so just go PM lappy and ask your question
lappy512
Please do not PM me.

BMP files are not supported. Period.
sum
sorry for the poor description lol.

QUOTE(lappy512 @ Aug 7 2006, 05:37 AM)
Please do not PM me.

BMP files are not supported. Period.
*



i know you didnt make it possible to upload bmp files but i have made it possible by reading another thread here.

but thats not the problem.

I have made the maximum file size that a person can upload is 3mb. now a friend of mine tried to upload a 2.5mb jpg file but it told him that the file exceeds the file size limit.

So i looked thro the code to see where the file size limit could be placed except the config php file but there was no where else. so i increased the maximum file size to a random number which turned out to be over 8000mb. tried to upload the image, but same problem. it says file to big.

Now everything else works perfectly well, dont know why this doesnt.

Any ideas?

Thankyou.
guitar_freak22
QUOTE(sum @ Aug 7 2006, 11:08 AM)
sorry for the poor description lol.
i know you didnt make it possible to upload bmp files but i have made it possible by reading another thread here.

but thats not the problem.

I have made the maximum file size that a person can upload is 3mb. now a friend of mine tried to upload a 2.5mb jpg file but it told him that the file exceeds the file size limit.

So i looked thro the code to see where the file size limit could be placed except the config php file but there was no where else. so i increased the maximum file size to a random number which turned out to be over 8000mb. tried to upload the image, but same problem. it says file to big.

Now everything else works perfectly well, dont know why this doesnt.

Any ideas?

Thankyou.
*



Maybe because you are not allowed to edit the code of this website? I believe only the admin can do that...but you still need to be more specific.
sum
ask admin? its open source code tho right? and how more specific can i get lol.

i login into the admin panel, set the maximum file limit to 3mb. i try to upload a 2.5mb file (which is the right size as its under the max file limit) but it gives out an error saying the image too large.
Mynck
QUOTE(guitar_freak22 @ Aug 7 2006, 08:38 AM)
Maybe because you are not allowed to edit the code of this website?  I believe only the admin can do that...but you still need to be more specific.
*


The person's asking about PHPKImageHost.
guitar_freak22
QUOTE(Mynck @ Aug 7 2006, 11:51 AM)
The person's asking about PHPKImageHost.
*




Hmm....well...oops. My elevator is not going up today...
Mario
QUOTE(sum @ Aug 7 2006, 08:48 AM)
ask admin? its open source code tho right? and how more specific can i get lol.

i login into the admin panel, set the maximum file limit to 3mb. i try to upload a 2.5mb file (which is the right size as its under the max file limit) but it gives out an error saying the image too large.
*


wait a minute you logged into the admin panel?
sum
yes...? of course i can, i installed it. crazy people tongue.gif happy.gif
Mynck
QUOTE(Mario @ Aug 7 2006, 10:19 AM)
wait a minute you logged into the admin panel?
*



The person's asking about PHPKImageHost.
Threatcon
QUOTE(sum @ Aug 7 2006, 11:48 AM)
ask admin? its open source code tho right? and how more specific can i get lol.

i login into the admin panel, set the maximum file limit to 3mb. i try to upload a 2.5mb file (which is the right size as its under the max file limit) but it gives out an error saying the image too large.
*



1. Are you converting your numbers correctly? 3 megabytes is equal to 3100000 bytes. So this 3100000 should be the number you put in your admin panel for max file size.

2. Does this only apply to .bmp 's?

3. Can you upload a 3 mb gif, or jpeg file?
sum
QUOTE(Threatcon @ Aug 7 2006, 09:27 PM)
1.  Are you converting your numbers correctly?  3 megabytes is equal to 3100000 bytes.  So this 3100000 should be the number you put in your admin panel for max file size.

2.  Does this only apply to .bmp 's?

3.  Can you upload a 3 mb gif, or jpeg file?
*




yup, 3mb is 3145728 bytes and i entered it in the admin panel and also checked the file as well to see if it posted it.

it happens to a jpg as well. small images are fine, bmp, jpg, png, gif, they all work perfectly. i tested them all when they are less then 1mb.

But i tried a 2.4mb jpg and a 2.5mb bmp and it says image is to big. Really strange.
Bobalini
QUOTE(sum @ Aug 7 2006, 04:32 PM)
yup, 3mb is 3145728 bytes and i entered it in the admin panel and also checked the file as well to see if it posted it.

it happens to a jpg as well. small images are fine, bmp, jpg, png, gif, they all work perfectly. i tested them all when they are less then 1mb.

But i tried a 2.4mb jpg and a 2.5mb bmp and it says image is to big. Really strange.
*


umm im not sure but i think 3 mb should be something like 3000000 bytes if you are actualy saying 3mb and not 3.something mb
Mynck
QUOTE(Bobalini @ Aug 7 2006, 02:42 PM)
umm im not sure but i think 3 mb should be something like 3000000 bytes if you are actualy saying 3mb and not 3.something mb
*


No, sum has the right number.
lappy512
QUOTE(sum @ Aug 7 2006, 08:08 AM)
sorry for the poor description lol.
i know you didnt make it possible to upload bmp files but i have made it possible by reading another thread here.

but thats not the problem.

I have made the maximum file size that a person can upload is 3mb. now a friend of mine tried to upload a 2.5mb jpg file but it told him that the file exceeds the file size limit.

So i looked thro the code to see where the file size limit could be placed except the config php file but there was no where else. so i increased the maximum file size to a random number which turned out to be over 8000mb. tried to upload the image, but same problem. it says file to big.

Now everything else works perfectly well, dont know why this doesnt.

Any ideas?

Thankyou.
*


Okay, could you point me to which thread you read so I can see what modifications you made?
sum
http://forums.krazyletter.com/http://forums.krazyletter.com/index.php?showtopic=6075

thats the thread that allowed me the bmp to upload. but like i said, it affects all images. Im pretty sure this was happening even before i made the modifications as well.
lappy512
What is your Site URL; can I take a look? Are you using PHP 4.2.0+? It happens for all files larger than 1.5 MB? Can I check your PHPinfo? (to do that, create a PHP file with the contents: "<?php phpinfo(); ?>" )
sum
sure, http://www.sumario.net

btw, u will notice that there is no link back to you. that because im planning on donating once we get this working lol happy.gif

phpinfo page:

http://www.sumario.net/phpinfo.php

well it has happened to a 1.4mb jpg so i would say 1mb and above? i dont know.

Thanks.

EDIT: its using php version 4.4.2
Threatcon
QUOTE
max_execution_time 30    <- seconds

upload_max_filesize  2M


I'm just throwing this out there, but maybe the max execution time has something to do with it. If you can upload 3 mb in less than 30 seconds you have a killer connection. Plus your max upload file size is only set to 2 mb. Hummmm.... It might work if you get both those numbers increased. rolleyes.gif

cool.gif
sum
so its the server doing this? ill see what i can do, try email the host.


Thankyou.
sum
It works perfectly now. Thankyou so much.

it was the server stopping it.

It was increased to 5m and 90 sec

The reason why it was so low in the 1st place was because my hosty told me that it was to protect the server from hackers.

Thank you again.

p.s. got another problem but its not super important happy.gif read my new thread if you want.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.