file The underlying
width Width of the image in pixels.
File.delete(save=True) Removes the file from the model instance and deletes the underlying file. If save is True
size The size of the file in bytes.
File.save(name, content, save=True) Saves a new file with the file name and contents provided. This will not replace the existing
height Height of the image in pixels.
write(content) Writes the specified content string to the file. Depending on the storage system behind the scenes, this content
class ContentFile(File) [source] The ContentFile class inherits from File
close() [source] Close the file. In addition to the listed
multiple_chunks(chunk_size=None) [source] Returns True if the file is large
Page 1 of 2