Control who and for how long can access files in your project via signed URLs. When enabled, a user will require a token to access your content by the link like this:
A signed URL is a URL that contains authentication information in its query string that provides limited permission and time to get the file.
Use cases:
Prior to using signed URLs, set up a custom CNAME.
Example:
Where:
{path} is URL path part that contains file UUID and optionally any processing operations and filename. E.g.:
/{uuid}//{uuid}/-/preview/100x100//{uuid}/lolcat.jpg{acl} is an optional Access Control List parameter. It supports * wildcard
as a suffix.
ACL examples to access files with a token:
acl=/* — any file in a project.acl=/{uuid}/ — original file with UUID.acl=/{uuid}/* — original file or any variation of the original file.acl=/{uuid}/-/resize/640x/ — modified file version.You can test signed URLs with in the test environment using the following credentials:
sectest.ucarecdn.com73636b61519adede42191efe1e73f02a67c7b692e3765f90c250c230be095211Note: don’t use it in production, this secret key is well known.
Your backend app should take care of generating access tokens. To create tokens, you need to get the encryption key from our support.
You can start with ready-made solutions for popular languages:
Please note that we have limited support for this option.
Here non-official solutions:
You can use signed URLs into the Uploadcare PHP library.
After setting up signed URLs, specify the projects where you plan to store protected files. We will close public access to these projects.
The proxy backend is an API endpoint within your application’s backend. Its primary function is to receive a file URL, apply a signature for security, and respond with a redirect to the signed URL. This ensures secure access to files through your application.
The app needs to resolve the following tasks:
Don’t forget to check user credentials on your backend. Make sure not to authenticate anonymous user requests. Otherwise using signed URLs don’t make any sense.
previewProxy option specifies the URL of a proxy backend.
File Uploader uses this URL to generate secure previews of files by applying signed URLs.
Here is a previewProxy example (Node JS + Express):
This feature is available on paid plans.
Contact us to enable the this feature.
Please specify if you need to upload files larger than 1 GB in your request.