Last active
October 23, 2019 22:50
-
-
Save atsmith813/939bb55f2c4a946f8d422cad8342e702 to your computer and use it in GitHub Desktop.
AWS Textract
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This process will upload the image to the S3 bucket | |
image = params[:image] | |
s3 = Aws::S3::Resource.new | |
bucket = ENV['AWS_BUCKET'] | |
name = File.basename(file) | |
obj = s3.bucket(bucket).object(name) | |
s3_image = obj.upload_file(file) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment