signal-desktop/ts/test-node
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
..
components Timeline: repair oldest/newest metrics if we fetch nothing 2020-12-04 14:41:40 -06:00
linkPreviews Timeline: repair oldest/newest metrics if we fetch nothing 2020-12-04 14:41:40 -06:00
logging Use consistent User-Agent when uploading debug logs 2021-01-25 18:28:59 -08:00
quill Prefer type to interface and add an ESLint rule 2021-01-25 18:29:00 -08:00
types Allow PSD uploads over 6MB 2021-02-10 14:47:55 -08:00
updater Specify public key type in updatesPublicKey 2021-02-05 11:34:52 -06:00
util 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
helpers.ts Timeline: repair oldest/newest metrics if we fetch nothing 2020-12-04 14:41:40 -06:00
license_comments_test.ts Update license tests in preparation for new year 2020-12-17 12:12:52 -05:00
logging_test.ts Convert logging infrastructure to TypeScript 2021-01-27 13:13:33 -08:00
tslint.json Timeline: repair oldest/newest metrics if we fetch nothing 2020-12-04 14:41:40 -06:00