When using Cloudinary's Upload Widget to allow your users to upload media directly from their browser, you may want to restrict the upload requests by only allowing a signed upload to be accepted by Cloudinary. To accomplish this, you can set your widget's upload presets to be signed presets, which means a signature is always required.
However, generating a signature should never be performed client-side as it requires your API Secret which must not be exposed publicly under any circumstance. Although the signing is done server-side, all other aspects of the upload are performed by the client.
Below, you can find an interactive code sample for both the client-side and the server-side code required for making a successful signed upload widget request.
Comments
0 comments
Please sign in to leave a comment.