Upload Private File to Local Storage
API endpoint for uploading private files to local storage. The request must include a valid signature, UUID, and timestamp to verify the upload. The file is provided as a Base64 encoded string in the request body. The “Content-Type” header must be set to a valid MIME type, and the file data must be a valid file object (buffer).
Authorizations
Use your Formbricks x-api-key to authenticate.
Path Parameters
The ID of the environment.
Body
The ID of the survey associated with the file.
The URI encoded file name.
The MIME type of the file.
Signed signature for verifying the file upload.
Unique identifier used in the signature validation.
Timestamp used in the signature validation.
Base64 encoded string of the file. It should include data type information, e.g. "data:<mime-type>;base64,<base64-encoded-data>".
Response
Success message.
Was this page helpful?