core.files.storage.FileSystemStorage
  • References/Python/Django/API/File handling/File storage API

class FileSystemStorage(location=None, base_url=None, file_permissions_mode=None, directory_permissions_mode=None) [source]

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

FileUploadHandler.receive_data_chunk(raw_data, start) [source] Receives a “chunk” of data

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

class Storage [source] The Storage class provides a standardized API for storing

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