On 6/30/07, Norman Khine <[EMAIL PROTECTED]> wrote: > Hello, > I am writing an application using python that allows the user to upload > an image to a folder on the server. > > Is there a way to get the size of the file before it has been uploaded > onto the server and give an error if the size does not comply to the > maximum size.
The easiest way to do this is to simply restrict the maximum file upload size. When the client makes the POST request you can see how big it will be. This won't really give you the image dimensions of course, but there's no simple way to find out that information without uploading the entire image. -- Evan Klitzke <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list