Re: Reading image dimensions before it is loaded from a web form using python.

2007-07-01 Thread Diez B. Roggisch
> > Without running some special client-side application, I think you'd > have to do some trickery with the web server involving artificially > stopping the upload after receiving enough bytes to constitute the > image header, and then deciding whether or not to proceed with the > upload at that p

Re: Reading image dimensions before it is loaded from a web form using python.

2007-06-30 Thread Evan Klitzke
On 6/30/07, Cameron Laird <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Evan Klitzke <[EMAIL PROTECTED]> wrote: > >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

Re: Reading image dimensions before it is loaded from a web form using python.

2007-06-30 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Evan Klitzke <[EMAIL PROTECTED]> wrote: >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 b

Re: Reading image dimensions before it is loaded from a web form using python.

2007-06-30 Thread Evan Klitzke
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 doe

Reading image dimensions before it is loaded from a web form using python.

2007-06-30 Thread Norman Khine
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. So far, my apps loads the im