Appearance
Return
Save files with WeWeb Storage
Set up WeWeb Storage so users can upload files and you can save the file path for later use.
TEMPLATE AVAILABLE
If you wish to skip the manual setup, there is a workflow template available called Upload a File or Get Signed Download URL. You can find it inside the templates available when creating an API workflow.
Steps at a glance ​
- Enable
WeWeb StorageinData & API. - Create an upload API from the WeWeb Storage template.
- Call that API from the
Interface. - Save the returned file path on the related record.
1) Enable WeWeb Storage ​
- Go to
Data & API→Storage. - Select
WeWeb Storage. - Choose the environment you want to work in.
- Click
Continue.
2) Create an upload API ​
- Go to
Data & API→API Endpoints. - Create an upload API endpoint.
- Choose whether the file should be
PublicorPrivate. - Set a
Pathsuch asuploads/orusers/avatars/. - Review the API security settings so only the right users can upload.
3) Upload from the interface ​
- In the
Interface, add aFile Uploadelement. - Add a button such as
Upload file. - On click, call your upload API endpoint.
- Map the API
fileinput to the value from theFile Uploadelement.
When the workflow runs, the API returns the uploaded file details.
4) Save the file reference ​
After the upload succeeds, save the returned file information on the related record.
Recommended rule:
- Always save the file
path - Only save the
urlwhen the file is public
Examples:
- Save a profile photo path on the user record
- Save a contract path on the contract record
- Save a resume path on the application record
Common pitfalls ​
The file uploads but you cannot find it later ​
- Save the returned
pathin your data right after the upload. - Do not rely only on the upload response shown during testing.
You do not see the file in Storage ​
- Make sure you are viewing the same environment where the file was uploaded.
Private files do not open directly ​
- Create a signed download URL API and use that signed URL instead of trying to use a public link.

