Restore the community photo after reload and reject empty, oversized, SVG, and spoofed uploads.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
adilallo
2026-09-10 15:50:32 -06:00
co-authored by Cursor
parent 6ccc1e8c8e
commit 234f3998ad
18 changed files with 1072 additions and 112 deletions
+6 -2
View File
@@ -1,9 +1,13 @@
{
"errors": {
"generic": "Something went wrong while uploading. Try again.",
"tooLarge": "That file is too large. Try a smaller image or PDF.",
"tooLarge": "That file is too large. Community photos can be up to 5 MB; attachments up to 10 MB.",
"unauthorized": "Sign in to upload files. Use Save progress if you started without an account.",
"misconfigured": "Uploads are not available on this server yet."
"misconfigured": "Uploads are not available on this server yet.",
"empty": "That file is empty. Choose a file that has content.",
"svg": "SVG files aren't supported. Export a JPEG, PNG, WebP, or GIF instead.",
"invalidType": "That file isn't a supported image (or PDF for attachments). Renaming the extension isn't enough.",
"undecodable": "We couldn't read that image. It may be damaged — try another file."
},
"uploading": "Uploading…"
}