Google dot what?
Posts: 2
16 credits Members referred : 0
« on: May 21, 2006, 11:04:36 am »
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
« Last Edit: May 26, 2006, 09:12:55 pm by olaf »
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #1 on: May 21, 2006, 11:33:15 am »
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)
Google dot what?
Posts: 2
16 credits Members referred : 0
« Reply #2 on: May 21, 2006, 11:50:37 am »
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.
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« Reply #3 on: May 21, 2006, 11:56:10 am »
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......
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)
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=2554