API endpoint for uploading public files. Uploaded files are public and accessible by anyone. This endpoint requires authentication and enforces a hard limit of 5 MB for all uploads. It accepts a JSON body with fileName, fileType, environmentId, and optionally allowedFileExtensions to restrict file types. On success, it returns a signed URL for uploading the file to S3.
The ID of the environment.
The name of the file to be uploaded.
The MIME type of the file.
Optional. List of allowed file extensions.
heic, png, jpeg, jpg, webp, pdf, eml, doc, docx, xls, xlsx, ppt, pptx, txt, csv, mp4, mov, avi, mkv, webm, zip, rar, 7z, tar OK - Returns the signed URL, presigned fields, updated file name, and file URL.