Sublime directory Surf the web anonymous Pagerank Monitor


filesize check

t00l
Sun 21 May 2006, 11:04 am GMT +0200
I managed to get your script working easy enough... but why the hell do you have the filesize check AFTER the file uploads?
the script is perfect besides this, waiting for a 20mb file to upload before the script says "...oh your file is too big"

can you please fix the code and paste back here what to change so it is before upload?

thanks a mil

Cam

Nikolas
Sun 21 May 2006, 11:33 am GMT +0200
Quote
but why the hell do you have the filesize check AFTER the file uploads?

Php is a server side language. That means that it is not possible to check the size of a file that is not in the server (=if you don't upload the file, it can't access it)

But if you want to check the size of a file on the client (before the upload) maybe you can do it with some kind of client side scripting (javascript, vbscript, java)

t00l
Sun 21 May 2006, 11:50 am GMT +0200
ahh, well that is a different story then.

basically a mate and I talk alot and want to send photos, but msn will not work between us. I just wanted a simple script that would allow him to share a photo with me. but because he is bad with computers he would not have a clue if the file is big or not. his dialup internet wouldnt help either when the file turned out too big lol.

Nikolas
Sun 21 May 2006, 11:56 am GMT +0200
Then I guess it would be easier to learn him how to check the size of a file, instead of finding a way of client side manipulation of it......

olaf
Tue 23 May 2006, 09:39 am GMT +0200
ahh, well that is a different story then.

basically a mate and I talk alot and want to send photos, but msn will not work between us. I just wanted a simple script that would allow him to share a photo with me. but because he is bad with computers he would not have a clue if the file is big or not. his dialup internet wouldnt help either when the file turned out too big lol.
Maybe its better to use some photosharing software like picasa (it´s from Google)

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional