Start uploading a file so it can be attached to a padlet.
A file dropped into ChatGPT arrives as `file`. Pass that object here and do not PUT. Padlet
downloads and verifies it, and the returned `url` is ready for any destination in step 4.
Do not call complete_attachment_upload for that file.
A local file, when you can read it and send an HTTP PUT (with `curl`, for instance):
1. Call this tool with the file's real size in bytes and its content type. Do not pass `file`.
2. PUT the raw bytes to the `upload_url` you get back. One request, no headers, no form
encoding — for example `curl -T /path/to/file "<upload_url>"`. The body must be exactly
`size_bytes` bytes long.
3. Call complete_attachment_upload with the same `wall_url` and the `uploaded_url` from this
tool. Nothing reaches the padlet until you do, and the file is verified at that point —
an HTML, SVG or XML file is rejected and deleted, whatever its name.
4. Pass the URL complete_attachment_upload returns to a post's `attachment` in save_posts, a
comment's `attachment` in save_comments, `wallpaper_image_url` of
update_padlet_appearance or `icon_image_url` of update_padlet_heading.
An ordinary public web link that should remain a link can be passed directly to any of those
destinations.
Returns { success: true, upload_url: "...", uploaded_url: "...", expires_at: "..." } for a
local file, { success: true, url: "...", file_name: "...", content_type: "...", size_bytes: 123 }
for a chat-dropped file, or { success: false, error_code: "...", message: "..." }.