Object Storage – How to share an object or file externally
Objective
This guide explains how to securely share files or objects stored in OVHcloud Object Storage with external users, covering temporary access, public-read objects, and bucket policies, while highlighting URL types and best practices.
Use case scenarios
Usual use case scenarios for sharing objects in OVHcloud Object Storage include:
- You want to provide a temporary download link to a partner or client without giving full bucket access.
- You need to make specific objects public, such as images or product documents, while keeping the rest of the bucket private.
- You want to grant controlled access to certain files for collaborators or external users.
Comparison of URL Types
When sharing objects in OVHcloud Object Storage, understanding the difference between path-style and virtual-hosted-style URLs is important.
Key Takeaways:
- Use path-style URLs for temporary, API-generated access.
- Use virtual-hosted-style URLs for public or long-term sharing, as they are more standard and easier to manage.
Requirements
- A bucket
- A user with the required access rights on the bucket
See our Getting started with Object Storage guide.
Instructions
OVHcloud Object Storage offers three main ways to share objects externally. Choose the method depending on whether you need temporary access, public access, or controlled sharing.
Presigned URLs provide temporary access to a private object without changing bucket permissions.
Steps:
- Generate a presigned URL using the OVHcloud API or an S31-compatible SDK.
- Set an expiration time.
- Share the URL with the external user.
Example (AWS CLI):
This command returns a temporary link valid for 1 hour.
After expiration, access is automatically blocked and the object remains private.
Go further
If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for assisting you on your specific use case of your project.
Join our community of users.
1: S3 is a trademark of Amazon Technologies, Inc. OVHcloud's service is not sponsored by, endorsed by, or otherwise affiliated with Amazon Technologies, Inc.