core.files.storage.Storage.open()
  • References/Python/Django/API/File handling/File storage API

open(name, mode='rb') [source] Opens the file given by name. Note that although

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

UploadedFile.content_type_extra A dictionary containing extra parameters passed to the content-type header. This

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.images.ImageFile.height
  • References/Python/Django/API/File handling/The File object

height Height of the image in pixels.

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

size The size of the file in bytes.

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

UploadedFile.chunks(chunk_size=None) A generator returning chunks of the file. If multiple_chunks() is True

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

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

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

FileUploadHandler.file_complete(file_size) [source] Called when a file has finished uploading

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.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