diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-07-08 11:53:45 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2012-07-08 11:53:45 +0200 |
| commit | 5e94ef293cb1cfe4dc43cbd5509653c0e0bf66cf (patch) | |
| tree | b2efffc5f0e672655673f58e24c8a6e40a8f175c /docs/ref/forms | |
| parent | 8015593bc1f2f226e7979bfdee8b7e88658d0e74 (diff) | |
Fixed #18374 -- Explained "corrupt image" error
Thanks fabian and charettes.
Diffstat (limited to 'docs/ref/forms')
| -rw-r--r-- | docs/ref/forms/fields.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 486d49d796..082ec17a35 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -591,7 +591,11 @@ For each field, we describe the default widget used if you don't specify * Error message keys: ``required``, ``invalid``, ``missing``, ``empty``, ``invalid_image`` - Using an ImageField requires that the `Python Imaging Library`_ is installed. + Using an ``ImageField`` requires that the `Python Imaging Library`_ (PIL) + is installed and supports the image formats you use. If you encounter a + ``corrupt image`` error when you upload an image, it usually means PIL + doesn't understand its format. To fix this, install the appropriate + library and reinstall PIL. When you use an ``ImageField`` on a form, you must also remember to :ref:`bind the file data to the form <binding-uploaded-files>`. |
