Media survive failures: uploaded when attached, the server's limits, alt text asked for

The composer uploads each file as soon as it is attached (streamed from the browser file, under its own ten-minute
timeout), shows it uploading, processing (a 202 followed until ready), ready or failed with Retry, and cancels one
removed; publishing sends the ids, so a failed publish or a retried upload sends nothing twice. Size limits and types
come from /api/v2/instance, a file without a browser type gets one from its extension, and each refusal names the file
and why. Previews are 320 px thumbnails, not whole files in memory. A picture without a description is asked about once
("Publish anyway"; a setting turns it off), descriptions are sent with PUT, and an edit keeps the post's media, language
and sensitive flag.

Profile pictures are checked against the server's types and can be removed. A card shows "Media unavailable" with the
original's link when a picture fails, the blurhash behind a sensitive placeholder, and plays a GIF only on tap under
reduced motion. A failed export says so instead of downloading part of a file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LsXgEaXee4GCU1hwYgPJXw
This commit is contained in:
thepraandClaude Opus 5.5 committed 2026-10-07 11:56:59 +02:00
1 parent 9d662f702b
commit 70cb389537
26 files changed
+883 -132

No files matched your search

+42
View File
@@ -1898,4 +1898,46 @@
<data name="{0}× anisotropic" xml:space="preserve">
<value>{0}× anisotropic</value>
</data>
<data name="Avatar removed." xml:space="preserve">
<value>Avatar removed.</value>
</data>
<data name="Header removed." xml:space="preserve">
<value>Header removed.</value>
</data>
<data name="Describe them" xml:space="preserve">
<value>Describe them</value>
</data>
<data name="Media unavailable" xml:space="preserve">
<value>Media unavailable</value>
</data>
<data name="Processing" xml:space="preserve">
<value>Processing</value>
</data>
<data name="Publish anyway" xml:space="preserve">
<value>Publish anyway</value>
</data>
<data name="Ready" xml:space="preserve">
<value>Ready</value>
</data>
<data name="Remind me to describe pictures before publishing" xml:space="preserve">
<value>Remind me to describe pictures before publishing</value>
</data>
<data name="Remove the avatar" xml:space="preserve">
<value>Remove the avatar</value>
</data>
<data name="Remove the header" xml:space="preserve">
<value>Remove the header</value>
</data>
<data name="Uploading" xml:space="preserve">
<value>Uploading</value>
</data>
<data name="Wait for the files to finish uploading, or remove the ones that failed." xml:space="preserve">
<value>Wait for the files to finish uploading, or remove the ones that failed.</value>
</data>
<data name="{0} of the pictures have no description, which people who can't see them rely on." xml:space="preserve">
<value>{0} of the pictures have no description, which people who can't see them rely on.</value>
</data>
<data name="&quot;{0}&quot; is not a kind of file this server takes." xml:space="preserve">
<value>"{0}" is not a kind of file this server takes.</value>
</data>
</root>