[Javascript] Resizing images client-side
Glenn E. Lanier, II
glenn_lanier at netzero.net
Fri Jul 13 15:32:41 CDT 2007
> From: Hassan Schroeder
> Sent: Friday, July 13, 2007 2:49 PM
> To: [JavaScript List]
> Subject: Re: [Javascript] Resizing images client-side
>
> Terry Riegel wrote:
>
> > PHP only knows about the files after they are uploaded.
> This is why upload
> > scripts are usually either ASP or PERL.
>
> ? And through what mystical process would a program written in *any*
> language running on a remote server peek into the file system of the
> user's machine and determine the file size *before* it's uploaded? :-)
I think you can look in the POST/GET headers to see the size of the data
envelope in most languages. I know C++ based ISAPI allows you to access this
information before receiving the entire POSTed info (GET has size limits, so
does not apply here). I would assume ASP.NET provides access to similar;
don't know about PHP but it may "protect" the developer from seeing all the
particulars.
--G
More information about the Javascript
mailing list