Forum Moderators: open

Message Too Old, No Replies

Checking file size just before upload that

         

setareh

4:13 pm on Mar 4, 2006 (gmt 0)

10+ Year Member



Is it possible that in image upload scripts we check image size (kb) with javascripts and then allow user to upload them? I use php for my upload script.

DrDoc

2:49 am on Mar 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nope, not possible.

setareh

5:26 pm on Mar 5, 2006 (gmt 0)

10+ Year Member



thanks!
any other suggestion?

RonPK

9:05 pm on Mar 5, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are several Java applets out there that handle file uploads. As they need access to the users file system, they all require the user to click an OK button first.

setareh

9:46 pm on Mar 6, 2006 (gmt 0)

10+ Year Member



Thanks RonPK
You mean I must use something like ActivX?

Trace

8:45 pm on Mar 7, 2006 (gmt 0)

10+ Year Member



You can set upload_max_filesize in your Php.ini file. You're going to need to go to the Php forums for more help on the matter.

setareh

2:44 pm on Mar 9, 2006 (gmt 0)

10+ Year Member



Trace
Thanks, that was a good idea ;)