driver
path
driver
client
secret
bucket
path
Storage
class.put
methodexists(file_path)
missing(file_path)
stream
FileStream
object to manage a file stream.copy('/file1.jpg', '/file2,jpg')
move('/file1.jpg', '/file2,jpg')
prepend('file.log', 'content')
append('file.log', 'content')
put('file.log', 'content')
get('file.log')
put_file('directory', resource, "name")
UploadedFile
. Takes an optional third name
parameter to specify the file nameput_file
method more useful:put_file
method will return the relative path to the file so you can save it to the database and fetch it later.name
parameter:When using Amazon S3, you will need to set your bucket permissions and policies appropriately.