FileUploadMixin#

class FileUploadMixin#

Bases: object

Methods Summary

delete_storage_file(storage_url)

Deletes the file with the url storage_url from the container.

get_storage_file(storage_url)

Returns the content file with the url storage_url from the container.

new_storage_file(bucket, data[, filename])

Stores the file to the container

new_storage_file_from_name(bucket, filename)

Stores the file identified by filename to the container

Methods Documentation

delete_storage_file(storage_url)#

Deletes the file with the url storage_url from the container.

Parameters

storage_url – File name

get_storage_file(storage_url)#

Returns the content file with the url storage_url from the container.

Parameters

storage_url – File name

new_storage_file(bucket, data, filename=None)#

Stores the file to the container

Parameters

data – data to be stored

new_storage_file_from_name(bucket, filename)#

Stores the file identified by filename to the container

Parameters
  • filename – filename to be stored

  • bucket – bucket name