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.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.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.save()
  • References/Python/Django/API/File handling/The File object

File.save(name, content, save=True) Saves a new file with the file name and contents provided. This will not replace the existing

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

class InMemoryUploadedFile [source] A file uploaded into memory (i.e. stream-to-memory).

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

get_accessed_time(name) [source] New in Django

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.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.storage.Storage.url()
  • References/Python/Django/API/File handling/File storage API

url(name) [source] Returns the URL where the contents of the file referenced by name

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

FileUploadHandler.chunk_size Size, in bytes, of the “chunks” Django should store into memory and feed into the handler. That

2025-01-10 15:47:30