core.files.images.ImageFile.width
  • References/Python/Django/API/File handling/The File object

width Width of the image in pixels.

2025-01-10 15:47:30
core.files.File.delete()
  • References/Python/Django/API/File handling/The File object

File.delete(save=True) Removes the file from the model instance and deletes the underlying file. If save is True

2025-01-10 15:47:30
core.files.storage.Storage.accessed_time()
  • References/Python/Django/API/File handling/File storage API

accessed_time(name) [source] Returns a naive datetime object containing the

2025-01-10 15:47:30
core.files.uploadedfile.UploadedFile.content_type
  • References/Python/Django/API/File handling/Uploaded Files and Upload Handlers

UploadedFile.content_type The content-type header uploaded with the file (e.g. text/plain or

2025-01-10 15:47:30
core.files.storage.Storage.generate_filename()
  • References/Python/Django/API/File handling/File storage API

generate_filename(filename) [source] New in Django

2025-01-10 15:47:30
core.files.uploadhandler.TemporaryFileUploadHandler
  • References/Python/Django/API/File handling/Uploaded Files and Upload Handlers

class TemporaryFileUploadHandler [source] Upload handler that streams data into a temporary

2025-01-10 15:47:30
core.files.File.write()
  • References/Python/Django/API/File handling/The File object

write(content) Writes the specified content string to the file. Depending on the storage system behind the scenes, this content

2025-01-10 15:47:30
core.files.uploadedfile.UploadedFile.size
  • References/Python/Django/API/File handling/Uploaded Files and Upload Handlers

UploadedFile.size The size, in bytes, of the uploaded file.

2025-01-10 15:47:30
core.files.uploadedfile.TemporaryUploadedFile
  • References/Python/Django/API/File handling/Uploaded Files and Upload Handlers

class TemporaryUploadedFile [source] A file uploaded to a temporary location (i.e. stream-to-disk)

2025-01-10 15:47:30
core.files.uploadhandler.FileUploadHandler.new_file()
  • References/Python/Django/API/File handling/Uploaded Files and Upload Handlers

FileUploadHandler.new_file(field_name, file_name, content_type, content_length, charset, content_type_extra) [source]

2025-01-10 15:47:30