core.files.base.ContentFile
  • References/Python/Django/API/File handling/The File object

class ContentFile(File) [source] The ContentFile class inherits from File

2025-01-10 15:47:30
core.files.storage.FileSystemStorage.file_permissions_mode
  • References/Python/Django/API/File handling/File storage API

file_permissions_mode The file system permissions that the file will receive when it is saved. Defaults to FILE_UPLOA

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

exists(name) [source] Returns True if a file referenced by the given name already

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

UploadedFile.read() Read the entire uploaded data from the file. Be careful with this method: if the uploaded file is huge it

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

class MemoryFileUploadHandler [source] File upload handler to stream uploads into memory

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

chunks(chunk_size=None) [source] Iterate over the file yielding “chunks” of a given size

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

path(name) [source] The local filesystem path where the file can be opened using Python’s

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

TemporaryUploadedFile.temporary_file_path() [source] Returns the full path to the temporary

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

FileUploadHandler.handle_raw_input(input_data, META, content_length, boundary, encoding) [source] Allows

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

get_available_name(name, max_length=None) [source] Returns a filename based on the name

2025-01-10 15:47:30