I use to think that to test image dimensions for a file being
uploaded, I needed to upload the file to the server, use Java ImageIO
(or similar) to test the image, then let the user know if the upload
was valid.

However, looking at Google AdWords, it seems Google has figured out a
way to test this on the client. Under the Campaign tab, I select "New
Ad" -> "Image Ad", then complete the form to upload a file. The
interface will tell me _instantly_ if my file dimensions are off or if
the file is too large.

Watching this in Firebug I see no communication made to the server. If
there is some communication that Firebug just does not see, it is
certainly is not the entire file upload as the feedback is immediate -
even if I select a very large file.

Is this a Google widget? Or does anyone know what voodoo google is
using here? Or perhaps this is part of Google's "secret sauce" so no
one is sharing? I scoured the Net but could not find how this is done.
Ideas?

Steve B.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to