Questions tagged [digital-ocean-spaces]

92 questions
7
votes
3 answers

Cannot upload files with ACL public-read to Digital Ocean spaces

I'm trying to upload images to a Digital Ocean space from the browser. These images should be public. I'm able to upload the images successfully. However, though the ACL is set to public-read, the uploaded files are always private. I know they're…
Nick
  • 5,108
  • 2
  • 25
  • 58
5
votes
1 answer

How can I use the AWS SDK v2 for Go with DigitalOcean Spaces?

I'm trying to use the AWS v2 SDK for Go to list all objects in a given bucket on DigitalOcean Spaces. Their documentation gives examples of how to use the v1 SDK to do this, but my app uses v2. I know I could technically use both, but I'd rather not…
Dan S
  • 283
  • 1
  • 12
4
votes
0 answers

How to get progress informations when upload files to Digital Ocean Spaces with Flutter

I'm trying to use Digital Ocean Spaces as file storage for my Flutter application. As API helper I'm using the package minio (https://pub.dev/packages/minio). In general I can start upload and download operations. But I can't find a way to get…
Vueer
  • 1,432
  • 3
  • 21
  • 57
4
votes
2 answers

Can't add http://localhost to DigitalOcean Spaces CORS Rules

As you can see from the image is it not currently possible to add http://localhost as a CORS rule.
Matt Davis
  • 1,167
  • 8
  • 21
4
votes
2 answers

ERR_SSL_VERSION_OR_CIPHER_MISMATCH on Digital Ocean

I've just created a space on the Digital Ocean cloud. To enable CDN, it asks for an SSL. My domain manager is Cloudflare. I've created a CNAME on the Cloudflare DNS settings page. Then created an origin server SSL certificate and added those keys to…
3
votes
2 answers

AWS S3 POST Policy content-length-range doesn't work for exact file size match

I'd like to add file size validation to our signed urls, making sure the client uploads a file of exactly the size I signed it with. However, when I do this : "conditions": [ {"acl": "public-read"}, .... , ["content-length-range", 1024,…
BVtp
  • 2,308
  • 2
  • 29
  • 68
3
votes
1 answer

Digital Ocean Spaces TypeError [ERR_INVALID_URL]: Invalid URL

I am creating a Shopify app in the express on the local and getting this error. The same code is working when I use this app on the server. I don't know why is this not working in the local environment. I am using Digital Ocean Spaces, Node.js…
3
votes
1 answer

DigitalOcean Spaces Call list_buckets returns nothing

I've seen a lot of people have problems with this online and now I've run into the issue myself. I'm trying to use boto3 to list_buckets in a DigitalOcean Spaces. It returns a 200 status code, however there are no buckets listed inside. Strangely…
mj_
  • 6,297
  • 7
  • 40
  • 80
3
votes
0 answers

Best way to serve videos for (React Native) mobile app: why is HLS so slow over LTE?

I would like to serve video files in my mobile app (React Native using the react-native-video player). The two things I care about are: Adaptive bitrate so people with slower bandwidth (e.g., LTE) can still watch the video with minimal…
3
votes
1 answer

Uploading Image to S3 bucket stores it as application/octet-stream, but I want to store it as an image to use it (JavaScript / Node)

I want my users to upload profile pictures. Right now I can choose a file and pass it into a POST request body. I'm working in Node.js + JavaScript. I am using DigitalOcean's Spaces object storage service to store my images, which is…
3
votes
0 answers

How to cache digitaloceanspaces images with Next/Image

I am using the new next/image component to load avatar images from digitaloceanspaces as follow: import Image from "next/image"; ...
coolbeatz71
  • 928
  • 2
  • 10
  • 22
3
votes
1 answer

DigitalOcean Spaces: unable to set file to public

I have a Digital Ocean Space setup with CDN configured. I know the CDN config is functional because files uploaded and set to public with Transmit work fine. I'm trying to get my CMS to upload and publish files. I’ve tried using this SDK and then…
blackbird
  • 1,129
  • 1
  • 23
  • 48
2
votes
2 answers

Using CDN with ActiveStorage, what should be ENV['CDN_HOST']?

So ActiveStorage works perfectly. I have now turned on CDN on DigitalOcean Spaces, with a personal subdomain like: https://cdn.my-website.com I have been following this Rails official doc which states to have the following code in…
Arslan Ali
  • 17,418
  • 8
  • 58
  • 76
2
votes
1 answer

Issue with S3Client on DigitalOcean - Unable to execute HTTP request: Timeout waiting for connection from pool

In our app, we have attachments that are supposed to be secured. These attachments are stored in DO Spaces and we are generating resigned URLs to allow secured access. The logic of signing the URLs looks like this: String getSignUrl(String…
Shurik Agulyansky
  • 2,607
  • 2
  • 34
  • 76
2
votes
1 answer

Is there a way to properly close file handles in Laravel/Flysystem?

I have a Laravel Command that periodically uploads some file to a remote S3 disk (DigitalOcean Spaces, S3 compatible and uses the Laravel/Flysystem S3 driver). The problem is that the command crashes after moving around 100 files because the server…
Pelmered
  • 2,727
  • 21
  • 22
1
2 3 4 5 6 7