Questions tagged [digital-ocean-spaces]

92 questions
2
votes
1 answer

DigitalOcean > SPACES : delivery static assets of Rails app

I spent all day trying to use spaces to delivery static assets. Tutorial1 with Cloudfront Tutorial2 with Cloudfront And it took me only 5 minutes to make it work on Cloudfront without any configuration except the domain name ... (l). Here is the…
user15829831
  • 597
  • 1
  • 4
  • 8
2
votes
1 answer

How to upload the folder to digital ocean spaces?

From the link, https://www.digitalocean.com/community/questions/how-to-upload-an-object-to-digital-ocean-spaces-using-python-boto3-library. It only states to upload files to the spaces. I want to upload a folder to the spaces. import boto3 session…
Atom Store
  • 961
  • 1
  • 11
  • 35
2
votes
0 answers

Store Image files publicly in S3 compatible storage with Laravel Nova

I'm using an Image field in Nova for the first time and found that previews were not displaying. I am using DigitalOcean Spaces with the S3 driver for the relevant disk. It seemed that files were uploaded with private permissions and so the preview…
2
votes
0 answers

Cannot upload file to DigitalOcean spaces using ACL as public-read using signed POST URL?

Basically the same question as this but using POST instead of PUT. Using POST, I can add other conditions like file size limit, content-type limit, etc. import { createPresignedPost } from '@aws-sdk/s3-presigned-post'; // client S3Client instance…
Harshal Patil
  • 17,838
  • 14
  • 60
  • 126
2
votes
1 answer

Image is displaying on browser but not in reactJS

I have images on a DigitalOcean space, but my problem is that when I want to display the image in reactJS inside a img tag as follow: const search = 'https://wantedoffice.dev.bucket.ams3.digitaloceanspaces.com/smartphone.png'; .......
2
votes
0 answers

Reverse proxy S3 bucket via Haproxy

I'm trying to setup a reverse proxy to my S3 bucket (I'm using DigitalOcean Spaces) using Haproxy (specifically Haproxy Ingress). After some trial and error, I got somewhere with the proxy, but it doesn't work quite yet. A GET request works fine,…
2
votes
0 answers

How to prevent the file from public on Digital Ocean Space?

Hi everyone I stuck on Digital Ocean that I want to prevent my file from the public. First of all. I set the .env file like this DO_SPACES_KEY= THE KEY DO_SPACES_SECRET= THE…
2
votes
1 answer

The path of a URI with an authority must start with a slash "/" or be empty. DigitalOcean Spaces AWS S3 SDK PHP

System error occurred The path of a URI with an authority must start with a slash "/" or be empty. Automagically fixing the URI by adding a leading slash to the path is deprecated since version 1.4 and will throw an exception instead. line#755…
Pedro Díaz
  • 23
  • 1
  • 4
2
votes
0 answers

Edge URL vs subdomain

In Digital Ocean Spaces (S3) there are 3 URLs for static assets that I've uploaded. Origin and Edge (they're the same) and a subdomain that I've configured. I couldn't find if there is a difference in performance in loading these assets on external…
eskimo
  • 2,421
  • 5
  • 45
  • 81
1
vote
1 answer

CORS header ‘Access-Control-Allow-Origin’ missing with PUT request to Digital Ocean PreSigned URL

I am using NodeJS to generate my PreSigned URL using digital ocean API (AWS SDK S3) and passing it to my frontend Angular App, which is making a PUT request to upload a file. There starts the problem it is throwing a CORS error as shown below from…
1
vote
0 answers

How to upload image to DIgital Ocean Space

I have tried to create a REST API to upload images to digital ocean space and try it with postman, but I get an error: "NotImplemented: Server does not support one or more requested headers. Please see…
Afdal
  • 501
  • 9
  • 19
1
vote
0 answers

Why am I getting this error? CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1

I have built an app in Nodejs which uploads file to the DigitalOcean Spaces. I am using multer for the same. When I run it locally on my device, it successfully uploads on DigitalOcean but when I try to upload it after the deploying the app on…
1
vote
0 answers

File is not being completely updated on S3

I have the following function that upload a file to a S3: import { PutObjectCommand, S3Client, } from "@aws-sdk/client-s3"; const client = new S3Client({ endpoint: "https://fra1.digitaloceanspaces.com", region: "fra1", credentials: { …
Nullndr
  • 1,624
  • 1
  • 6
  • 24
1
vote
1 answer

How to upload files to Digital Ocean Space with AWS SDK for .NET?

I am wanting to create a WinForm application to upload selected files to digital ocean space. You can imagine it works similar to Cyberduck and written in C#. Thanks a lot
1
vote
1 answer

Digital Ocean Spaces Replication for Staging

We're currently moving our setup from a few VPS to Digital Ocean. Our setup includes a staging site, which has a replica of our live db, however all E-Mails are caught using Mail Catcher and it has it's own storage location for assets, as we don't…
wawa
  • 4,816
  • 3
  • 29
  • 52