# Create a file upload

`needleCreateFileUpload`

Mint a short-lived signed PUT URL, or copy a public file with sourceUrl. Omit scope for a workspace file. Pass scope "user" to keep the file visible only to you. PUT bytes to uploadUrl when it is returned, then pass the returned url on needleSendLinkedinMessage or needleSendLinkedinInMail. Campaign steps can attach workspace files only. downloadUrl is a preview link. Do not store uploadUrl.

**Input**

- `scope` ("workspace" | "user", optional): workspace shares the file with the organization. user keeps it visible only to you. Omit for a workspace file. Campaign steps can attach workspace files only.
- `filename` (string, optional)
- `contentType` (string, optional)
- `sourceUrl` (string · uri, optional): Public https URL. Needle copies the file into a private object and returns the url to attach.
