Prerequisites
To follow this guide, you will need to:Install and initialize the Restash uploader
Install
Install the Restash JS client SDK using your preferred package manager. Restash works with all Javascript front end
frameworks.
Uploading your first file
In this example, we will upload a file in Next.jsmy-form.tsx
Signed uploads
Enabling signed uploads for your team ensures that only your server can authorize uploads by requiring a secure signature for each request. This prevents abuse and gives you full control over who can upload.Implementing signed uploads
Require signed uploads for your team
Navigate to your team settings page and enforce signatures.
Create an endpoint to generate signatures
Generate signatures using the
generateSig function with your secret key./api/restash/signature/route.ts