Recognition

No awards yet.

Posts

5 Posts
  • Published Answer

    How to make Rails uploads to a Digital Ocean bucket to be public by default?

    Another caveat here: I’ve discovered that since enabling this feature, direct uploads have still been marked as private by default....
    By connorshea
  • Published Answer

    How to make Rails uploads to a Digital Ocean bucket to be public by default?

    I think public: true in storage.yml should be sufficient for this in Rails 6.1, looking at the Rails service here: https://github…
    By connorshea
  • Published Answer

    Rails ActiveStorageDigitalOcean Spaces CORS

    So I figured out that the reason this wasn’t working is because I needed to set up CORS, and include some headers that Rails/Spaces…
    Accepted Answer: So I figured out that the reason this wasn’t working is because I needed to set up CORS, and include some headers that Rails/Spaces…
    By connorshea
  • Published Question

    Rails ActiveStorageDigitalOcean Spaces CORS

    I'm getting a CORS error when trying to upload an image to DigitalOcean Spaces, despite it working fine in development and test. The error is as follows: Access to XMLHttpRequest at 'https://vglist.sfo2.digitaloceans...
    Accepted Answer: So I figured out that the reason this wasn't working is because I needed to set up CORS, and include some headers that Rails/Spaces needed. You need to go your DigitalOcean Spaces settings, then "Add" an Advanced CORS...
    1 By connorshea Ruby on Rails Ubuntu
  • Published Question

    Using Rails ActiveStorage with DigitalOcean Spaces CDN Custom Subdomain?

    I'm working on setting up a custom subdomain for my site's Spaces CDN and was wondering if anyone has any advice on how to get my Rails app to actually return the custom subdomain URL for images instead of the digital...
    4 By connorshea Ruby on Rails CDN DigitalOcean Ubuntu 18.04