Posts
Add Files
Add files to an existing post. A post holds up to limits.max_files files: 10 on Free and 50 on Plus, with no limit on Ultra and in a team.
POST
Add Files
Add one or more files to an existing post. The share code, privacy, title and description stay the same. Adding a file to a single-file post turns it into an album.
One of two files failed:
Headers
Send the files as
multipart/form-data, repeating the file field.
Behavior
- You must own the post. A team post needs that team’s access key, and a lapsed team returns
403. - Moderated posts cannot be changed and return
403with typemoderated. - A post holds at most
limits.max_filesfiles: 10 on Free and 50 on Plus. Ultra and team posts have no limit. A full post, or a request that would go past the cap, returns400. - New files take the post’s privacy. On a private post their URLs are signed and expire after 24 hours.
- Ultra accounts and team keys can add archives, audio and PDFs, except to a public post, where they fail with
unsupported_type. See File Types. - Videos are remuxed to MP4, metadata and priority streaming follow the headers or your preferences, and Blur Personal Info checks pictures, exactly as in Upload Files. Videos added here do not get a thumbnail.
- Each file is checked against your weekly quota on its own. A file that does not fit fails with type
quota_exceeded. - Failures work like uploads: stored files come back with
200and the rest are listed infailed. If every file fails, a one-file request returns that file’s error and a multi-file request returns400with typeupload_failed. See Errors. - New files are scanned automatically. If any file, or the post’s text, is flagged, the whole post is moderated.
- The response is the full updated post.
- A file of any size can also be added in pieces, sent to this endpoint exactly as in Large Files, with
include-metadataandpost-priorityon the first piece. The post is checked when the first piece arrives and again after the last, andGET /upload/{id}ends with this same{post}body.