|
|
|
|
|
| | |
|
Active Server Pages ASP control controls class classes module script Scripts applet CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Checking Image Size with asp or vbscript |
From: |
dzzie |
Date: |
12/28/2000 4:53:29 PM |
IP: |
216.163.113.155 |
think that is goign to be a tricky one because you inherantly dont have the read access to the file system to use filelen()...my guess is that you are going to have to let them upload what they want then validate it on the server's disk with the filelen() method...and if it is to big just have it return a error...or you know what...when they first click the upload button (if you are doign this through the input type=file) the browser should send in the http header to initate the transfer a content-length: attribute...you could just check this header before the file is transfered and abort the process on them somehow (a redirect to a warnign pages comes to mind but might not give them warning because of the type of event it is in response to) *shrugs* i dunno know..validating on the servers disk would probably be the quickest to program and debug...just post a big warning on max file size next to upload controls so your sight dosent get web wacked from 1MB image uploads... |
Previous Message
Follow Up - Re: Checking Image Size with asp or vbscript - suki 12/28/2000 7:37:20 PM
|
|

|
|
|
|
|
|
|
|
|
|