Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #18840 - Added a mentioned of the upload_to parameter to the Mo…

…delForm example in file uploads.
  • Loading branch information...
commit c6088bc91d29b6b49eba0ec82b0239a557c658ef 1 parent 306d348
@timgraham timgraham authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 docs/topics/http/file-uploads.txt
View
4 docs/topics/http/file-uploads.txt
@@ -183,7 +183,9 @@ Handling uploaded files with a model
If you're saving a file on a :class:`~django.db.models.Model` with a
:class:`~django.db.models.FileField`, using a :class:`~django.forms.ModelForm`
-makes this process much easier. The file object will be saved when calling
+makes this process much easier. The file object will be saved to the location
+specified by the :attr:`~django.db.models.FileField.upload_to` argument of the
+corresponding :class:`~django.db.models.FileField` when calling
``form.save()``::
from django.http import HttpResponseRedirect
Please sign in to comment.
Something went wrong with that request. Please try again.