One time usable url for an object in spaces

I was going through the spaces api and I haven’t found what I was looking for. So basically what I’m trying to do is,

  1. Create a private bucket in spaces
  2. Create a url for an object that let’s users download the file
  3. Once the download is complete the url should no longer be valid i.e., it must be usable only once

Is something like this possible?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Well, if you use spaces as private storage for your backend and then the URL goes via your backend code, then you can manage it there right?


I think that currently, Spaces doesn’t support this. You can share this idea with our product team by adding it to our UserVoice.

But what I could suggest is that you can generate signed URLs that expire in a defined period of time. Most S3 compatible libraries and tooling will allow you to generate these URLs. This might allow you to work around your need for one time usable URLs.

Hope that this helps. Regards, Bobby