Kaydet (Commit) 8099bc53 authored tarafından Russell Keith-Magee's avatar Russell Keith-Magee

Fixed #7963 -- Corrected reference to deprecated properties in UploadedFile…

Fixed #7963 -- Corrected reference to deprecated properties in UploadedFile documentation. Thanks to Marty Alchin for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8092 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst eca3c7d3
...@@ -79,10 +79,10 @@ methods to access the uploaded content: ...@@ -79,10 +79,10 @@ methods to access the uploaded content:
In practice, it's often easiest simply to use ``chunks()`` all the time; In practice, it's often easiest simply to use ``chunks()`` all the time;
see the example below. see the example below.
``UploadedFile.file_name`` ``UploadedFile.name``
The name of the uploaded file (e.g. ``my_file.txt``). The name of the uploaded file (e.g. ``my_file.txt``).
``UploadedFile.file_size`` ``UploadedFile.size``
The size, in bytes, of the uploaded file. The size, in bytes, of the uploaded file.
There are a few other methods and attributes available on ``UploadedFile`` There are a few other methods and attributes available on ``UploadedFile``
...@@ -169,10 +169,10 @@ All ``UploadedFile`` objects define the following methods/attributes: ...@@ -169,10 +169,10 @@ All ``UploadedFile`` objects define the following methods/attributes:
Returns ``True`` if you can expect more than one chunk when calling Returns ``True`` if you can expect more than one chunk when calling
``UploadedFile.chunks(self, chunk_size)``. ``UploadedFile.chunks(self, chunk_size)``.
``UploadedFile.file_size`` ``UploadedFile.size``
The size, in bytes, of the uploaded file. The size, in bytes, of the uploaded file.
``UploadedFile.file_name`` ``UploadedFile.name``
The name of the uploaded file as provided by the user. The name of the uploaded file as provided by the user.
``UploadedFile.content_type`` ``UploadedFile.content_type``
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment