:
: :
: > I can get the file size, width, and height either from local or server
: > without components and without using FSO.
:
: How do you manage that then? I would have assumed you'd need to use the
FSO
: to get information about a file.
On the server-side you do if it is not an image file. If it is an image
file you can create a new image and set the src to your image file. You
then can use fileSize but there is an issue. When I do it quickly, it
displays -1 for fileSize. If I introduce a delay, it works.
This is one I wrote that allows you to check the file size and image size
(width/height) before you upload. It has a flaw because it will not clear
the file upload text if the file fails validation so I'm using an
alternative method for submitting the form with valid files. I got a
response from HikksNotAtHome about using a dummy form but I have not put in
his method with this code yet.
This is the link for the client-side code:
http://kiddanger.com/lab/iupload.asp
This is the link of the other discussion:
http://groups.google.com/[email protected]#link18