Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
4 votes
2 answers
105 views

Ruby ZIP Temp file hast PDF content-type

I'm using rails 6.1 and paperclip 5.0 I built a worker to generate a ZIP file based on other stored files in S3 then upload this ZIP file back to S3. So basically I download the files from S3 add them ...
Pedro's user avatar
  • 1,192
1 vote
0 answers
145 views

Is there a simple way to set AWS tags when uploading to S3 with ActiveStorage?

I want to set AWS tags when uploading to S3 with ActiveStorage. However, S3Service does not support that, even though the underlying aws-sdk-s3 library does. I've actually managed to implement this, ...
Eugen Dück's user avatar
0 votes
0 answers
33 views

ChunkLoadError: cannot load js asset in jekyll site on AWS S3/CloudFront

TL;DR The browser is able to download a js asset, but the main js is not able to "load" it. NOTE: I have no experience with javascript or web development. The problem I'm using the Hydejack ...
Ólavur's user avatar
  • 420
0 votes
1 answer
58 views

ImageKit works fine on local but doesn't work on heroku why?

puts "Uploading image #{@game_id}" kit = IMGKit.new(@game_url, quality: 50) image_data = kit.to_png obj = S3.object(File.join(@bucket_path, "#{@game_id}.png")) obj.put(body: ...
Jatin Garg's user avatar
0 votes
1 answer
33 views

Iterating over a list doesn't work when rescuing 302

When I iterate over a list, sending a get request with every element, block in rescue executes for the first iteration only. Here's the code: def download_doc(gem_id) url = @base_url + ...
boberczus's user avatar
2 votes
1 answer
686 views

Rails 7 - rich text not showing attached media content

I'm working on a Rails 7 app in which I use ActionText/Trix editor. I'm using Amazon AWS / S3 for storing files. I have verified and can see that media files gets uploaded to S3, but for some reason ...
Anders's user avatar
  • 2,911
0 votes
1 answer
76 views

Parallel downloads from S3 with Ruby SDK

I have some very large files on s3. I want to download them using the ruby sdk. Is there a way of downloading them in parallel? I could use the ’parallel’ gem but wondering if there was another way eg ...
testing09's user avatar
  • 137
1 vote
1 answer
34 views

Remove log files on aws s3 (rails7)

Which option is better to remove log files on aws s3 for rails7? s3 automation vs cron job I wrote some rake tasks. task :delete_stale_logs do s3 = Aws::S3::Resource.new( region: ENV['...
codeboxxer's user avatar
1 vote
2 answers
424 views

S3 direct upload using a Pre-signed url generated from STS temporary credentials

I am trying to upload files to s3 using a pre-signed URL. I could successfully generate the URL using the AssumeRole credential but while uploading the file from Browser it is throwing the below error....
sgk's user avatar
  • 169
0 votes
1 answer
552 views

Active-storage : Uncaught Error: Direct upload failed: Error creating Blob for "example.png". Status: 500, POTENTIAL CORS ERROR?

I have recently added rich-text features to my blog on my portfolio website, most of which works fine (I followed a GoRails tutorial, as was lazy). The issue I am facing is that image uploads work in ...
Jack Gio Packham's user avatar
0 votes
1 answer
54 views

How to specify a storage_class when uploading to AWS S3 with Ruby?

I have this code: Aws.config.update( region: Settings.cloud_config['region'], credentials: Aws::Credentials.new( Settings.cloud_config['access_key_id'], Settings....
Hackeron's user avatar
  • 626
0 votes
0 answers
122 views

`SignatureDoesNotMatch` error with S3 upload PresignedURL created in Ruby

SignatureDoesNotMatch error occurs when uploading a file using the PresignedURL created with the following source code. File uploads are done via Postman. Please tell me how to troubleshoot. def call(...
Naoto Omori's user avatar
0 votes
0 answers
836 views

Getting LocalStack TCP connection error when trying to list AWS S3 buckets in Ruby tests

Im trying to list the AWS S3 Buckets but in doing so I'm getting the following LocalStack error message: Failed to open TCP connection to docs-localstack:4566 (getaddrinfo: Temporary failure in name ...
Ceesar's user avatar
  • 13
0 votes
1 answer
41 views

Image Gets Uploaded While env is set to Amazon S3 but shows YAML error when env set to local

YAML syntax error occurred while parsing /app/config/storage.yml. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Error: (): did not find expected tag URI while ...
Sumant's user avatar
  • 1
0 votes
1 answer
158 views

Shrine upload_options for checksum_algorithm giving an error

I'm new to S3 and Shrine, and I'm working with a Shrine uploader in Ruby on Rails to upload files to Amazon S3, which has been in place for a couple of years on this Rails app. The thing I'm working ...
Mike Vallano's user avatar

15 30 50 per page
1
2 3 4 5
64