Ticket #10400: fileupload.2.diff
File fileupload.2.diff, 783 bytes (added by , 16 years ago) |
---|
-
docs/topics/http/file-uploads.txt
30 30 other ``FileField`` subclass) in the form. So the data from the above form would 31 31 be accessible as ``request.FILES['file']``. 32 32 33 Note that ``request.FILES`` will only contain data if the request method was 34 ``POST`` and the ``<form>`` that posted to the request has the attribute 35 ``enctype="multipart/form-data"``. Otherwise, ``FILES`` will be a blank 36 dictionary-like object. 37 33 38 Most of the time, you'll simply pass the file data from ``request`` into the 34 39 form as described in :ref:`binding-uploaded-files`. This would look 35 40 something like::