wetrack_get_upload_presign_url
Generate an S3 presigned upload URL for direct browser-side file uploads, returning a final S3 URL to register attachments in WeTrack.
Instructions
Generate an S3 pre-signed upload URL for direct browser-side file uploads.
This is step 1 of the two-step upload flow:
Call this to get a presigned PUT URL and the final S3 file URL.
The client/browser PUTs the file binary directly to the presigned URL.
Use the final S3 URL in wetrack_add_ticket_attachment or wetrack_add_project_file to register the file in WeTrack.
Args: file_name: Original file name e.g. 'screenshot.png', 'report.pdf'. file_type: MIME type e.g. 'image/png', 'application/pdf', 'video/mp4'.
Returns: presignedUrl: The S3 PUT URL to upload the file to (expires in ~15 min). url: The final public S3 URL to use as the attachment URL in WeTrack.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | ||
| file_type | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |