User-Generated Platforms, chapter 13 of 57
The Upload Path
Direct-to-storage and resumable uploads, validation against hostile files and decompression bombs, mezzanine specs, and scanning before anything publishes.
Every file on a user-generated platform arrives through one door: a stranger's device sends bytes, and the platform has to accept them, store them, prove they are what they claim to be, check them against every list of things it must never publish, and only then let anyone else see them. The upload is the platform's largest untrusted input. A phone on a train sends a 2 GB video over a connection that drops every few minutes; a script sends ten thousand images an hour; a crafted 50 KB PNG declares itself 100,000 pixels square and takes down the worker that decodes it; a file that matches a known child sexual abuse hash must never reach a CDN, and must be kept as evidence rather than deleted.
The hard part is that these demands pull in different directions. Users want an upload to be fast and to survive a dropped connection; the platform wants its application servers out of the byte path, its storage bill free of abandoned half-uploads, its decoders isolated from hostile files, and a hard gate between "received" and "published" that no code path can skip. This chapter covers the path from the client to a media asset that is ready to publish: direct-to-storage uploads, resumable and chunked protocols, validation and hostile files, the mezzanine specs platforms publish for creators, and the scanning gate before publish. It extends media_assets in The Core Data Model. What happens after the gate belongs to the next chapters: variants, formats and metadata stripping to Images at Scale, dedup, tiers and purges to Storage, Dedup & Delivery Economics, transcoding to Video on Demand, and live broadcasts, which never upload a file at all, to Live Streaming: Ingest & Transcoding. The lists the scanning gate checks against are owned by Child Safety: Detection & Reporting, Terrorism, Violent Extremism & Graphic Content, Intimate Image Abuse and Copyright at Scale; this chapter is the hook they plug into.
How the Platforms Do It#
What platforms and upload vendors publish about their upload paths, as of October 2026:
| Platform or vendor | How bytes get in | Published limits | After the bytes land |
|---|---|---|---|
| Amazon S3 | Presigned PUT URLs; multipart upload for large objects |
Presigned URLs valid up to 7 days from the SDKs; parts numbered 1 to 10,000; multipart recommended from 100 MB | Parts are billed until the upload is completed or aborted |
| Cloudflare Images | Direct Creator Upload: the backend requests a one-time upload URL, the user's browser uploads to it without the platform's token | 10 MB, 100 megapixels, 12,000 pixels on a side; animations limited by total megapixels across frames; HEIC accepted as input | A draft image record exists from the moment the URL is issued until the file arrives |
| Cloudflare Stream | Direct creator uploads: a basic POST under 200 MB, the tus protocol above |
A required maxDurationSeconds reserved against storage until the upload arrives |
Webhooks or polling for the video's status |
| Discord | Attachment upload in the client | Per plan: the free limit is 20 MB (raised from 10 MB in August 2026), Nitro Basic 50 MB, Nitro up to 1 GB | Attachments shown in the message |
| Google Cloud Storage | Resumable upload sessions | Sessions last up to a week; a size range can be enforced with a request header | The session URI itself is the credential |
| Mastodon | POST /api/v2/media to the instance |
Published per instance through its API (the docs' example: 16,777,216 bytes and 33,177,600 pixels for images, 103,809,024 bytes and 120 fps for video) | Large video, GIF and audio return 202 Accepted; clients poll until 206 Partial Content becomes 200 OK |
| Mux | Direct uploads: the API returns an authenticated, resumable URL with a CORS origin set to the platform's app | Chunks in multiples of 256 KB, sent in order | video.upload.asset_created, then video.asset.ready webhooks |
| YouTube | Resumable upload sessions in its Data API: a session URI, chunked PUTs, 308 Resume Incomplete with the confirmed range |
256 GB or 12 hours, whichever is less; 15 minutes until the account is verified | Processing before the video plays; a published encoding spec for what to upload |
Four patterns run through the table. Nobody proxies bytes through the application: every vendor's design hands the client a scoped, expiring credential for one upload and keeps the platform's API in charge of permission, not transport. Big files are resumable by default: YouTube, Stream above 200 MB, Mux and S3 multipart all assume the connection will drop and give the client a way to ask "how much did you get?" Limits are published and enforced in more than one place: in bytes at the storage layer, in pixels and duration at the decoder, and in plan tiers at the product, and Mastodon goes as far as publishing them in its API so clients can resize before sending. Upload is not publish: every service returns an object that exists but isn't ready (a draft image, a 202, an asset waiting for a webhook), and the product shows "processing" until the pipeline says otherwise.
Direct-to-Storage Uploads#
The application server never carries the bytes: the API grants a scoped, expiring credential for one storage key it names itself, the client sends straight to storage or the vendor, and the server confirms the size and checksum before anything moves on. The general pattern, and the rules for presigned URLs, keys, size bounds and private landing buckets, are in Keep Bytes Off the Application and The Upload Credential. What a platform adds:
- The ask carries community rules. Beyond quotas and the account's standing, the grant checks the destination: a community that bans video, a channel that allows no attachments, a listing type that takes only photos.
- Vendors hand out one-time URLs. Cloudflare's Direct Creator Upload URL expires after 30 minutes if unused by default (configurable from two minutes to six hours) and creates a draft image record until the file arrives; Mux's direct upload URL is tied to a CORS origin set to the platform's own application.
- Every surface goes through the same path: post media, comment images, avatars and banners (
profiles.avatar_asset_idin the core model), chat attachments, listing photos, verification documents. Avatars are the classic gap, because they're small, look harmless and show up on every page the user touches. - Imports by link (paste a URL, import from another service) make the platform's fetcher an SSRF target, handled as in Uploads by URL.
Resumable and Chunked Uploads#
Media is big, so the platform's uploads are resumable by default. The three protocol families (tus, Google-style resumable sessions and S3 multipart), how to choose between them, and the rules every one needs (resume from the server's offset, expire and sweep sessions, checksum the whole file, make creation idempotent, reserve then reconcile quota) are in Resumable Uploads and Rules for Every Resumable Upload. The media vendors pick for you:
- Cloudflare Stream takes a basic
POSTunder 200 MB and requires tus above it, and makes the uploader declaremaxDurationSeconds, reserved against the account's storage until the file arrives and then charged at the real duration. A platform with per-user quotas reserves the same way: by declared size or duration at grant time. - YouTube's Data API uses resumable sessions: chunked
PUTs,308 Resume Incompletewith the confirmed range, chunks in 256 KB multiples. - Mux behaves the same way (
308means keep going; chunks in multiples of 256 KB, sent in order).
Abandoned sessions are among the orphans Storage, Dedup & Delivery Economics counts. In-app cameras push the upload onto the client: drafts encoded on the phone and uploaded in the background, before the user taps post, are in Camera & Effects.
Validation and Hostile Files#
Validation asks whether a file is an allowed kind, within limits, that the platform's own decoders can safely read. The general rules (don't trust the name or declared type, allowlist formats per purpose, cap bytes, pixels and time separately, decode in a sandbox, re-encode rather than pass through, treat SVG as active content, serve plain files as attachments from another domain) are in Checking What Arrived. Media platforms meet them at their hardest.
Limits are per medium, and published.
- Animations multiply. Every frame is decoded, so the limit is on total pixels across frames, which is how Cloudflare Images states it ("GIF/WebP animations are limited to the total megapixels across all frames"), alongside its 10 MB, 100 megapixel and 12,000 pixel per side limits for hosted images.
- Video limits are duration, resolution and frame rate, checked by probing the container before any transcoding is scheduled: YouTube caps uploads at 256 GB or 12 hours and holds unverified accounts to 15 minutes; Mastodon's API publishes a video pixel matrix and a 120 fps frame rate limit.
- Publishing the limits helps honest clients. Mastodon returns its instance's media limits from its API, so apps can resize and re-encode on the device before sending; a client that knows the cap never uploads 30 MB to be rejected.
Decoders are attack surface. Image and video libraries parse complex formats written by strangers, and they have a history:
- ImageTragick (disclosed May 3, 2016) was a set of ImageMagick flaws, the worst (CVE-2016-3714) allowing remote code execution through insufficient shell-character filtering in the delegates ImageMagick hands files to; others let a crafted file make the server fetch URLs (CVE-2016-3718), delete, move or read local files. The published mitigations were to check magic bytes before handing a file to ImageMagick and to disable the dangerous coders (MVG, MSL, URL, EPHEMERAL and others) in its
policy.xml. - CVE-2023-4863 (September 2023) was a heap buffer overflow in libwebp's lossless decoder: a crafted file with an unbalanced Huffman tree made the library "write data beyond the buffer allocated for the lookup tables." Cloudflare's write-up notes the library is used by "virtually every application that handles WebP images," and Citizen Lab tied it to an exploit chain used against an iPhone. Cloudflare patched its own image pipeline from a fix in the libwebp repository before a release existed.
That history is why the sandbox and the re-encode are not optional on an image host: the next decoder bug is already written. Re-encoding also strips metadata on the way, which Images at Scale relies on.
HEIC is a normal input now. iPhones from the iPhone 7 on capture HEIF photos and HEVC video unless the user switches the camera to "Most Compatible," and whether a file is converted to JPEG on the way out depends on how it's shared, so a platform sees both. Refusing HEIC pushes conversion onto users who don't know what the format is. Accept HEIC at the upload path (Cloudflare Images lists it among its input formats), decode it in the same sandbox, and leave the conversion to web formats to Format Negotiation. The same goes for orientation: the original's EXIF rotation must be applied before metadata is stripped, which Metadata, Location and Orientation covers.
Mezzanine Specs#
A mezzanine file is the high-quality master the platform transcodes from. Platforms accept almost anything decodable, but they publish what they'd like to receive, because the input decides the quality ceiling, how fast processing starts and how cleanly the file segments. YouTube's recommended upload encoding settings are the most detailed public spec:
| Setting | YouTube's recommendation |
|---|---|
| Container | MP4, no edit lists, moov atom at the front (fast start) |
| Video codec | H.264, progressive scan, High Profile, 2 consecutive B-frames, closed GOP of half the frame rate, CABAC, variable bitrate, 4:2:0 chroma |
| Audio | AAC-LC, Opus or Eclipsa Audio at 48 kHz |
| Frame rate | The rate it was recorded at; deinterlace first (1080i60 becomes 1080p30) |
| SDR bitrate, 24 to 30 fps | 1080p 8 Mbps; 1440p 16 Mbps; 2160p 35 to 45 Mbps |
| SDR bitrate, 48 to 60 fps | 1080p 12 Mbps; 1440p 24 Mbps; 2160p 53 to 68 Mbps |
Each line has a pipeline reason. Fast start puts the index at the front, so the platform can probe duration, codecs and dimensions from the first bytes and begin work before the whole file is read. A closed GOP of half the frame rate gives a keyframe every half second that doesn't depend on frames before it, so the file can be cut into segments and renditions that start cleanly (Encoding Ladders and Per-Title Encoding). Recording frame rate and progressive scan avoid a frame-rate conversion or deinterlacing pass the platform would otherwise run on every rendition. Bitrates well above the delivery ladder give the encoder headroom, because every rendition is a re-encode and a starved master looks worse at every rung.
What I take from it for a platform's own path: probe every video on arrival, record what it is (container, codecs, resolution, frame rate, bitrate, whether it's fast-start), accept the deviations the transcoder can fix, reject only what it can't, and tell creators in the product when their upload falls short of the spec rather than silently publishing a worse version. The probe result also feeds the cost model: a 12-hour 4K upload is a very different transcoding job from a 30-second phone clip, and The Transcode Farm schedules on it.
Scanning Before Publish#
The gate between "received" and "visible to anyone else" is the most important control in the media pipeline. The playbook's rule is short: any service that accepts user images should match uploads against known hashes before they're visible (Trust & Safety: Child Safety). In the core model the gate is the scanning state of media_assets:
| From | Event | To |
|---|---|---|
uploading |
The client confirms and the bytes are complete | scanning |
uploading |
The session expires | rejected |
scanning |
Every blocking scan passes | processing |
scanning |
Validation fails | rejected |
scanning |
A list match or a hold | quarantined |
processing |
Variants are made | ready |
What runs at the gate, in order of cost:
- Validation, above: type, limits, a successful sandboxed decode.
- Exact hash lookups. The SHA-256 the confirm step computed is looked up against the platform's own record of files it has already rejected or removed, so a re-upload of a removed file never gets further than its first request (the same hash drives Exact and Perceptual Dedup).
- Perceptual hash matching against the industry lists: child sexual abuse material (Child Safety: Detection & Reporting), terrorist and violent extremist content (Terrorism, Violent Extremism & Graphic Content), non-consensual intimate imagery (Intimate Image Abuse), and the platform's own list of previously removed content. These are blocking: no variant is generated and nothing reaches a CDN until they pass. The vendors and programs that hold the lists, and how each match must be handled, belong to those chapters.
- Malware scanning for files that are only files.
- Copyright fingerprinting against reference files, blocking or not by policy and by what the rights holder chose (block, monetize, track); Copyright at Scale owns the claim that results.
- Classifiers for nudity, graphic violence and the like, which set a content rating, route to human review, or blur, and which the playbook's Automated Detection, Human Review bands govern. These are often non-blocking: the asset proceeds and a high score holds the post for review instead.
Design rules for the gate:
- Quarantine, never delete, on a list match. A match is evidence. The asset moves to
quarantined, its original stays in restricted storage under a legal hold (legal_holdsfrom Accounts, Identity & Standing), a moderation case opens with the asset as subject, and the owning chapter's process (a CyberTipline report, a GIFCT incident, a copyright claim) takes over. What the uploader is told, and when, is that process's decision, not the upload path's. - Blocking scans fail closed. If the hash-matching service is down, uploads wait in
scanning; they don't publish and scan later. Non-blocking classifiers can fail open with a re-scan queued, and the timeout is recorded as a verdict, not swallowed. - Every scan is a row. Which scanner, which version, which list and list version, the verdict, the score and how long it took. The build, buy or rent rule applies: a vendor's answer is evidence in an appeal or a report and must survive the vendor changing its model.
- Lists grow, so scanning is not once. New hashes are added to the lists every day, so a file that passed last year may match today. Keeping each asset's perceptual hash (the core model's
perceptual_hash) makes a back-scan of the archive a query rather than a re-decode of every file; the harm chapters own when to run one. - Every surface, every version. Avatars, banners, chat attachments, listing photos, a replaced image on an edited post, and a recording when a live stream ends all pass the same gate. An edit that swaps the media is a new asset and a new scan, never an update of the old one's bytes.
- Show the state. The product says "processing" honestly. Mastodon's API returns
202 Acceptedand a null URL until the full file is ready, Mux and Stream send webhooks when the asset is ready, and a post with media isn't publishable until every attached asset isready. A post that publishes with a broken image while its file is still being scanned teaches users to repost, which doubles the work.
The gate costs seconds, and the platforms accept that, because the alternative is a window in which a known abuse image sits on a CDN edge. Live streams are the exception, since they can't be checked before they air, and Terrorism, Violent Extremism & Graphic Content covers what replaces the gate there.
How to Build It#
The chapter's additions to the core model, as columns on media_assets and two new tables:
ALTER TABLE media_assets
DROP CONSTRAINT media_assets_state_check,
-- NOT VALID: new rows checked now; validate after any backfill, without blocking writes
ADD CONSTRAINT media_assets_state_check CHECK (state IN ('uploading', 'scanning',
'processing', 'ready', 'rejected', 'quarantined', 'removed', 'purged')) NOT VALID,
ADD COLUMN purpose TEXT NOT NULL DEFAULT 'post_media',
ADD COLUMN source TEXT NOT NULL DEFAULT 'direct',
ADD COLUMN declared_type TEXT, -- what the client said; a hint, never trusted
ADD COLUMN detected_type TEXT, -- from decoding the bytes, e.g. 'image/heic'
ADD COLUMN original_filename TEXT, -- display only; never a storage key; personal data
ADD COLUMN probe JSONB, -- container, codecs, fps, bitrate, fast start
ADD COLUMN rejected_reason TEXT, -- 'too_large', 'pixel_limit', 'decode_failed', ...
ADD COLUMN uploaded_at TIMESTAMPTZ, -- bytes confirmed in storage
ADD COLUMN scanned_at TIMESTAMPTZ, -- every blocking scan passed
ADD CONSTRAINT media_assets_rejected_reason
CHECK ((state = 'rejected') = (rejected_reason IS NOT NULL)) NOT VALID,
ADD CONSTRAINT media_assets_purpose_check
CHECK (purpose IN ('post_media', 'avatar', 'banner', 'message_attachment', 'listing_photo',
'video', 'verification_document')) NOT VALID,
ADD CONSTRAINT media_assets_source_check
CHECK (source IN ('direct', 'resumable', 'url_import', 'api', 'federation', 'live_recording')) NOT VALID;
CREATE TABLE upload_sessions ( -- one grant to send bytes for one asset
id UUID PRIMARY KEY DEFAULT uuidv7(),
media_asset_id UUID NOT NULL UNIQUE REFERENCES media_assets (id),
account_id UUID REFERENCES accounts (id), -- null: an anonymous upload
idempotency_key TEXT, -- the client's, so a retried create returns this row
protocol TEXT NOT NULL CHECK (protocol IN ('presigned_put', 'multipart', 'tus',
'resumable_session', 'vendor_direct', 'url_fetch')),
vendor_ref TEXT, -- the vendor's upload id, or the multipart upload id
declared_bytes BIGINT, -- null when the client can't know yet
max_bytes BIGINT NOT NULL, -- the cap from the purpose and the account's plan
max_duration_ms INT, -- video: reserved against the quota until confirm
received_bytes BIGINT NOT NULL DEFAULT 0, -- the server's offset, from storage
status TEXT NOT NULL CHECK (status IN ('open', 'completed', 'expired',
'aborted', 'rejected')),
expires_at TIMESTAMPTZ NOT NULL,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
completed_at TIMESTAMPTZ,
CHECK (received_bytes <= max_bytes),
UNIQUE (account_id, idempotency_key)
);
CREATE TABLE media_scans ( -- one row per check per asset; the gate reads these
id UUID PRIMARY KEY DEFAULT uuidv7(),
media_asset_id UUID NOT NULL REFERENCES media_assets (id),
stage TEXT NOT NULL CHECK (stage IN ('validation', 'exact_hash', 'hash_list',
'malware', 'fingerprint', 'classifier')),
scanner TEXT NOT NULL, -- 'platform', or the vendor
scanner_version TEXT, -- model or engine version
list_ref TEXT, -- which list and list version, for hash_list
blocking BOOLEAN NOT NULL, -- does the gate wait for this row?
verdict TEXT CHECK (verdict IN ('pass', 'match', 'flag', 'fail', 'error',
'timeout')), -- null while running
score NUMERIC, -- classifiers; distance for near matches
detail JSONB, -- the raw vendor result, kept as evidence
moderation_case_id UUID REFERENCES moderation_cases (id), -- opened on match or flag
started_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
completed_at TIMESTAMPTZ
);
CREATE INDEX media_scans_asset ON media_scans (media_asset_id, stage);
The gate is one query over those rows, run when a scan completes:
-- Move an asset out of 'scanning' only when every blocking scan has passed.
UPDATE media_assets a
SET state = 'processing', scanned_at = NOW()
WHERE a.id = $1
AND a.state = 'scanning'
AND NOT EXISTS (
SELECT 1 FROM media_scans s
WHERE s.media_asset_id = a.id
AND s.blocking
AND (s.verdict IS NULL OR s.verdict <> 'pass')
);
Notes on the sketch:
- The state machine is enforced, not hoped for. Only the gate moves an asset from
scanningtoprocessing, only the variant step moves it toready, and onlyreadyassets can be attached to a published content item; a check in the publish path and a trigger oncontent_mediaboth refuse anything else.rejectedis the new terminal state for files that failed validation or whose session expired: their bytes are deleted and the row stays with its reason. - The session is the grant.
max_bytes,max_duration_msandexpires_atcome from the purpose and the account's plan, so a free account's 10 MB limit and a creator's 12-hour video limit are rules looked up at grant time (Rules as Data), not constants in the client.received_bytesis updated from storage, never from the client. - Quotas are queries over sessions. Bytes or minutes uploaded per account per day, and open sessions per account, are sums over
upload_sessions, checked at grant time alongside the request rate limit. - Sweepers close what users abandon. A scheduled job expires
opensessions pastexpires_at, aborts the multipart upload or deletes the partial object, and marks the assetrejectedwithrejected_reason = 'expired'; a storage lifecycle rule for incomplete multipart uploads is the backstop. media_scansis the hook other chapters extend. Child Safety: Detection & Reporting, Terrorism, Violent Extremism & Graphic Content and Intimate Image Abuse add their list-match records (list, hash type, distance, report or incident reference) against thehash_listrows; Copyright at Scale adds claims againstfingerprintrows. None of them adds a second scanning pipeline.- A match opens a case and a hold in one transaction. The scan row, the
quarantinedstate, the moderation case with the asset as subject and thelegal_holdsrow are written together, so there is no moment when the asset is quarantined but nobody is looking at it, or flagged but erasable. - Events:
media.upload_granted,media.uploaded,media.rejected,media.scanned,media.quarantinedandmedia.readygo through the outbox (Events & Async Messaging); processing, the composer's "processing" state, moderation queues and quota counters consume them.
Auditing#
- Every upload's provenance: who uploaded it (or that it was anonymous), from which surface and purpose, through which protocol, with the declared and detected type, the original filename where kept, and when the bytes were confirmed.
- Every scan, with versions. Scanner, version, list and list version, verdict, score, duration and raw result, so a CyberTipline report, a copyright dispute or an appeal can show exactly what matched and when, and a list update can be traced to the back-scan it triggered.
- Every rejection and its reason, so a creator who says "the upload failed" gets an answer, and limit changes can be measured against how many honest uploads they turn away.
- Every state change of an asset, including who or what released a quarantined asset and on which case decision.
- Limits in force at the time. Which size, pixel and duration caps applied to an account's plan on the day of an upload, because the caps change (Discord's free limit went from 10 MB to 20 MB in August 2026) and a dispute about a rejected file is judged against the rule of the day.
What This Means for the System You Build#
- Keep bytes out of the application tier: grant a scoped, short-lived credential for one platform-named key and let the client send straight to storage or the vendor.
- Bound every upload in three places: declared size at the API, enforced size at storage, decoded pixels, frames and duration in the worker.
- Make large uploads resumable with tus, a resumable session or multipart, resume from the server's offset, and checksum the whole file.
- Expire and sweep every session, including abandoned multipart parts the storage bill still counts.
- Decode in a sandbox with no network and hard limits, allowlist formats per purpose, re-encode before publishing, and patch image and video libraries on the vulnerability clock.
- Accept HEIC and fix orientation at the start of the pipeline rather than pushing format problems onto users.
- Publish a mezzanine spec, probe every video on arrival, and tell creators when an upload falls short.
- Gate publication on blocking scans that fail closed, with hash-list matching before any variant or CDN copy exists.
- Quarantine and hold on a match, opening a case in the same transaction, and let the owning harm chapter's process decide the rest.
- Record every scan as a row with scanner, version and list version, and keep perceptual hashes so back-scans are queries.
- Send every surface through the same path: avatars, attachments, listing photos and recordings included.
References#
Vendor documentation
- Amazon S3: Download and upload objects with presigned URLs, presigned URLs as bearer tokens, reuse until expiry, 7-day and 12-hour limits, expiry with temporary credentials, expiry checked at request start
- Amazon S3: Uploading and copying objects using multipart upload, parts 1 to 10,000, the 100 MB recommendation, no expiry, parts billed until completed or aborted,
AbortIncompleteMultipartUpload, full-object checksums andBadDigest - Google Cloud Storage: Resumable uploads, session URIs as authentication tokens, one-week sessions, 256 KiB buffer multiples
- Google Cloud Storage: HTTP headers and query string parameters,
x-goog-content-length-rangeand the400it returns - YouTube Data API: Resumable uploads, session URIs, the empty
PUTstatus check,308 Resume IncompleteandRange, 256 KB chunks, backoff on500to504,404for expired sessions - Cloudflare Images: Direct Creator Upload, one-time upload URLs, 30-minute default expiry and the two-minute to six-hour range, draft records
- Cloudflare Images: Limits, 10 MB, 100 megapixels, 12,000 pixels, animation limits across frames, HEIC as an input format
- Cloudflare Stream: Direct creator uploads, basic uploads under 200 MB, tus above,
maxDurationSecondsreservations - Mux: Upload files directly, authenticated resumable URLs, CORS origin,
308to continue, chunks in 256 KB multiples sent in order, upload and asset webhooks
Platform documentation
- YouTube: Recommended upload encoding settings, container, codec, GOP, audio, frame rate and bitrate recommendations
- YouTube: Upload videos longer than 15 minutes, the 15-minute default and the 256 GB or 12-hour maximum
- Mastodon: Instance entity, media attachment limits published in the API
- Mastodon: Media API methods,
202 Acceptedfor asynchronous processing,206 Partial Contentwhile processing - Apple: Using HEIF or HEVC media on Apple devices, HEIF and HEVC capture from iPhone 7, the Most Compatible setting, conversion depending on how media is shared
- Discord: File Attachments FAQ, the 20 MB free limit (up from 10 MB as of August 2026), Nitro Basic at 50 MB and Nitro at up to 1 GB
Vulnerabilities
- ImageTragick, CVE-2016-3714 and related ImageMagick flaws, the May 3, 2016 disclosure, magic-byte checks and
policy.xmlmitigations - Cloudflare: Uncovering the hidden WebP vulnerability, CVE-2023-4863 in libwebp's Huffman tables, its reach, the in-the-wild exploit, and Cloudflare's patching of its image pipeline