How to Generate a Temporary Link for a Private File

With Cyberin S3 Object Storage, you can share a private file with a temporary link, without making the file public. The link, called a presigned URL, provides access to a specific file for a limited time.

Anyone who has the link may be able to access the file until the link expires. Do not give it to anyone else but the person it belongs to.

1. Select the Private File

  1. Log in to your Cyberin account.

  2. Open the S3 Object Storage page

  3. Navigate to the Space containing the file.

  4. Find the file you want to share.

  5. Ensure the file is private.

Do not make this file public. There is no need to make its access permissions public, if you want to share it by a properly generated temporary link.

On your Cyberin storage panel, see if there is an option to create a temporary or presigned URL.

Choose the option when available, according to the instructions in the panel.

If this option is not available, you might have to create the link from an application or S3 compatible SDK that supports presigned URLs. The application must be configured with the correct endpoint, Space name, credentials and file path.

If you are using an application or SDK that supports pre-signed URLs:

  1. Choose file to share

  2. Choose what you want the link to do, e.g., download the file.

  3. Set the expiration time of the link.

  4. Generate the presigned URL.

  5. Copy the generated url.

Use the shortest expiration time that works for you. For example, if the person only needs to download a document today, don’t generate a link that expires later than it should.

Send the generated link to the intended recipient via an appropriate communication channel.

That said:

Presigned URL is a temporary access mechanism and it does not guarantee that the link will be used by only one person.

Please open the link in a private or incognito browser window where you are not already logged into the storage service.

Make sure that:

  1. Opening or downloading the correct file.

  2. Make the file publicly readable so it can be accessed.

  3. This url will only work for access until it expires.

If the link does not work, verify that the file exists, the credentials used to create the URL have the right permissions, and the endpoint and file path are correct.

Access Denied Please check the username and the permission used to create the link.

Link Does Not Open Check the URL, endpoint, Space name, and object key.

The link has expired. Could you please generate a new presigned url with proper expiry time.

File Content Type and Check Requested Response Behaviour File Downloads Instead of Opening File format and browser can play a role in whether a file opens or downloads.

Test the copied URL without an authenticated session to make sure it works correctly and has not been modified or expired.

Important Security Note

Keep private files private and use presigned URLs for temporary access. And never publish a file just to get a shareable link. Never give recipients storage access keys.

Note: You may be able to generate temporary links in the Cyberin panel, depending on the features of your current setup. If you do not have this on your panel, ensure that your storage configuration supports presigned URLs before using an app or SDK that does.