Models¶
-
class
uploader.models.
Upload
¶ An uploaded file.
-
uploaded_file
¶ FileField
containing the uploaded file.
-
date_uploaded
¶ DateTimeField
auto populated with the date and time the file was uploaded.
-
admin_url
¶ CharField
(255) stores the admin url of the object the upload handler returns.
-
content_type
¶ ForeignKey
(ContentType
) stores the content type of the object the upload handler returns.
-
object_id
¶ PositiveIntegerField
stores the id of the object the upload handler returns.
GenericForeignKey
is a generic link to the object the upload handler returns.
-
thumbnail_attr
¶ CharField
(255) stores the attribute of therelated_object
from which it can get a thumbnail.
-
filename
¶ Read Only Returns the filename of
uploaded_file
.
-
filename_slug
¶ Read Only Returns the filename of
uploaded_file
after applying theslugify
filter.
-
file_contents
¶ Read Only Returns the contents of
uploaded_file
wrapped as aSimpleUploadedFile
that is assignable directly to aFileField
orImageField
.
-
mimetype
¶ Read Only Returns the mimetype of
uploaded_file
.
-