Ticket #10400: fileupload.2.diff

File fileupload.2.diff, 783 bytes (added by Tim Graham, 16 years ago)

slightly modified from original patch

  • docs/topics/http/file-uploads.txt

     
    3030other ``FileField`` subclass) in the form. So the data from the above form would
    3131be accessible as ``request.FILES['file']``.
    3232
     33Note 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
     36dictionary-like object.
     37
    3338Most of the time, you'll simply pass the file data from ``request`` into the
    3439form as described in :ref:`binding-uploaded-files`. This would look
    3540something like::
Back to Top