signal-desktop/js/modules
Evan Hahn 4519aa4abf Allow PSD uploads over 6MB
You can't currently upload PSD files over 6MB. This is because its
mimetype is `image/vnd.adobe.photoshop`. We think this is an image, and
non-GIF images have a limit of 6MB.

To fix this, we could do one of two things:

1. Add a special case for PSD files
2. Increase the size limit for unsupported image types such as this

I went with the second option.

Tested this by:

- adding automated tests
- uploading a ~9 MB PSD file
- uploading a ~1 MB PNG
- uploading a ~27 MB PNG (which worked because it's converted to a smaller JPEG)
- uploading a ~50 MB text file
- trying to upload a ~500 MB text file (which failed, as expected)

Addresses [DESKTOP-1168][].

[DESKTOP-1168]: https://signalmessenger.atlassian.net/browse/DESKTOP-1168
2021-02-10 14:47:55 -08:00
..
metadata Honor messageKeysLimit, remove batching for session saves 2021-02-10 14:47:55 -08:00
types Allow PSD uploads over 6MB 2021-02-10 14:47:55 -08:00
views Add license headers across the project 2020-11-04 13:03:13 -06:00
.eslintrc.js Add license headers across the project 2020-11-04 13:03:13 -06:00
attachment_downloads.js Update TypeScript, Prettier and typescript-eslint for new TypeScript 3.8 syntax 2020-11-23 14:45:44 -05:00
auto_orient_image.js Add license headers across the project 2020-11-04 13:03:13 -06:00
backup.js Add an assertion when updating conversations; update cleanData 2021-02-04 11:54:03 -08:00
debug.js Add license headers across the project 2020-11-04 13:03:13 -06:00
emojis.js Add license headers across the project 2020-11-04 13:03:13 -06:00
i18n.d.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
i18n.js Add license headers across the project 2020-11-04 13:03:13 -06:00
idle_detector.js Add license headers across the project 2020-11-04 13:03:13 -06:00
indexeddb.js Add license headers across the project 2020-11-04 13:03:13 -06:00
link_previews.d.ts Create group link previews; don't open Signal links in browser first; allow ephemeral download of previously-error'd pack 2021-02-10 16:39:26 -06:00
link_previews.js Create group link previews; don't open Signal links in browser first; allow ephemeral download of previously-error'd pack 2021-02-10 16:39:26 -06:00
logs.js Add license headers across the project 2020-11-04 13:03:13 -06:00
messages_data_migrator.js Add license headers across the project 2020-11-04 13:03:13 -06:00
privacy.d.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
privacy.js Add license headers across the project 2020-11-04 13:03:13 -06:00
refresh_sender_certificate.js Clean up UUID-handling to prepare for future 2020-12-09 17:26:37 -05:00
settings.js Add license headers across the project 2020-11-04 13:03:13 -06:00
signal.js Support for joining New Groups via invite links 2021-01-29 14:16:48 -08:00
stickers.d.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
stickers.js Create group link previews; don't open Signal links in browser first; allow ephemeral download of previously-error'd pack 2021-02-10 16:39:26 -06:00
string_to_array_buffer.d.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
string_to_array_buffer.js Add license headers across the project 2020-11-04 13:03:13 -06:00