Skip to content

Instantly share code, notes, and snippets.

@atsmith813
Last active October 23, 2019 22:50
Show Gist options
  • Save atsmith813/939bb55f2c4a946f8d422cad8342e702 to your computer and use it in GitHub Desktop.
Save atsmith813/939bb55f2c4a946f8d422cad8342e702 to your computer and use it in GitHub Desktop.
AWS Textract
# 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