Models¶
-
class
uploader.models.Upload¶ An uploaded file.
-
uploaded_file¶ FileFieldcontaining the uploaded file.
-
date_uploaded¶ DateTimeFieldauto 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¶ PositiveIntegerFieldstores the id of the object the upload handler returns.
GenericForeignKeyis a generic link to the object the upload handler returns.
-
thumbnail_attr¶ CharField(255) stores the attribute of therelated_objectfrom which it can get a thumbnail.
-
filename¶ Read Only Returns the filename of
uploaded_file.
-
filename_slug¶ Read Only Returns the filename of
uploaded_fileafter applying theslugifyfilter.
-
file_contents¶ Read Only Returns the contents of
uploaded_filewrapped as aSimpleUploadedFilethat is assignable directly to aFileFieldorImageField.
-
mimetype¶ Read Only Returns the mimetype of
uploaded_file.
-