Ticket #14905: django-documentation-14990.diff
File django-documentation-14990.diff, 1.2 KB (added by , 14 years ago) |
---|
-
docs/ref/models/fields.txt
554 554 day. If you upload a file on Jan. 15, 2007, it will be saved in the directory 555 555 ``/home/media/photos/2007/01/15``. 556 556 557 If you w ant to retrieve the upload file's on-disk filename, ora URL that refers557 If you wish to retrieve the upload file's on-disk filename, a URL that refers 558 558 to that file, or the file's size, you can use the 559 :attr:`~django.core.files.File.name`, :attr:`~django.core.files.File.url` 560 and :attr:`~django.core.files.File.size` attributes; see :doc:`/topics/files`. 559 :attr:`~django.core.files.File.name`, :attr:`~django.core.files.storage.Storage.url` 560 and :attr:`~django.core.files.storage.Storage.size` attributes; provided the 561 :doc:`/ref/files/storage` you're using 562 (:class:`~django.core.files.storage.FileSystemStorage` by default) implements 563 them. See :doc:`/topics/files` for further information. 561 564 562 565 Note that whenever you deal with uploaded files, you should pay close attention 563 566 to where you're uploading them and what type of files they are, to avoid