[Javascript] Resizing images client-side

tedd tedd at sperling.com
Fri Jul 13 19:33:29 CDT 2007


At 10:06 AM -0400 7/13/07, L Lay wrote:
>tedd wrote:
>>At 1:11 AM +0000 7/13/07, Troy III Ajnej wrote:
>>>Why don't you simply get the filesize of the image the client is about
>>>to upload (via client script) and hit him with the message: "this file is
>>>to large\n  the file must  be smaller than...," etc.
>>>
>>
>>Hi Troy
>>
>>You care to provide an example of this simple operation?
>>
>>My understanding is that I can't get the file size until I get the 
>>file -- is that wrong?
>>
>>Cheers,
>>
>>tedd
>Tedd,
>
>I don't know about Javascript, but are you aware of the 
>max_file_size hidden field in PHP?  It can be easily fooled, but it 
>helps a bit because it notifies users of problems before you attempt 
>to process the file.  It's just a time saving measure.
>
>Have a look at:
><http://php.net/manual/en/features.file-upload.php>
>
>Lori

Lori:

Yeah, but if you look at it, you'll see that it doesn't work. Not 
only can the field be bogus, but no browser uses it -- so, there's no 
point.

Cheers,

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list