A flask file to upload file(s) to an S3 bucket.
run 'pip install -r requirements.txt'
Next is installing AWS CLI to your system.
Must have an AWS account subscription. You wont be able to input an account access key + secret key, or create an S3 bucket otherwise.
Take the S3.py file, and modify the following line of code.
s3.Bucket('INPUT BUCKET NAME HERE').put_object(Key=fileNames, Body=file_contents)
If you have a specific location in the S3 bucket file structure you'd like to upload to, insert it as 'bucketname/location', otherwise replace it with the 'bucketname' you created in aws console.
Have your terminal open to the s3.py code location, and run python s3.py. A new window should open on local host, allowing for the input of files.
Jake-Breaks-Stuff
Anthony from PrettyPrinted with his youtube video