FileStreamobject to manage a file stream.
UploadedFile. Takes an optional third
nameparameter to specify the file name
put_filemethod more useful:
put_filemethod will return the relative path to the file so you can save it to the database and fetch it later.
When using Amazon S3, you will need to set your bucket permissions and policies appropriately.