Entry detail

ImageURLField for Django newforms

While working on validation of avatars linked to by users in my Django forum application, I was able to extract some of the validation code I ended up with out into a reusable form field for Django's newforms library, named ImageURLField.

It allows you to easily validate details about an image's filesize, dimensions and format, and all without having to read the entire image itself into memory.

Posted by jonny on September 4, 2007

Comments

None yet.

Comments are currently disabled