signal-desktop/ts/types
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
..
message Prefer type to interface and add an ESLint rule 2021-01-25 18:29:00 -08:00
Attachment.ts Allow PSD uploads over 6MB 2021-02-10 14:47:55 -08:00
Calling.ts Prefer type to interface and add an ESLint rule 2021-01-25 18:29:00 -08:00
Colors.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
Contact.tsx Prefer type to interface and add an ESLint rule 2021-01-25 18:29:00 -08:00
Dialogs.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
I18N.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
IndexedDB.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
Logging.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
MapAsync.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
Message.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
MIME.ts Allow PSD uploads over 6MB 2021-02-10 14:47:55 -08:00
PhoneNumber.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
Settings.ts Hide title bar on macOS 2021-02-01 12:01:25 -08:00
SocketStatus.ts Add license headers across the project 2020-11-04 13:03:13 -06:00
Util.ts Prefer type to interface and add an ESLint rule 2021-01-25 18:29:00 -08:00