Creates a file record and returns a presigned upload URL. Upload the file via PUT to the upload_url, then confirm with PATCH.
API key from the Empirical dashboard.
File to create.
The project ID to associate the resource with.
Display name for the resource (typically the file name).
MIME type of the file.
File size in bytes.
External URL (e.g. Google Sheet link). When provided, creates a link-type file with no R2 upload required.
Description for the resource.
Created file with presigned upload URL.