wetrack_add_project_file
Register an already-uploaded S3 file to a project by recording its name, size, type, and folder. Use after presigned upload to add the file to WeTrack project files.
Instructions
Register an already-uploaded S3 file in project files. Upload to S3 first using wetrack_get_upload_presign_url, then call this.
Args: project_id: The project UUID. file_name: The file name e.g. 'requirements.pdf'. file_size: File size in bytes. s3_url: The S3 URL returned from the upload. file_type: MIME type e.g. 'application/pdf'. folder_id: UUID of the folder to place the file in.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| s3_url | Yes | ||
| file_name | Yes | ||
| file_size | Yes | ||
| file_type | No | ||
| folder_id | No | ||
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |