Open BomberFish opened 1 year ago
Ah this is due to the file size limit being hardcoded in the upload check. It would simply require a single change here:
Something along the lines of
- guard let size = try? attachment.resourceValues(forKeys: [URLResourceKey.fileSizeKey]).fileSize, size < 8*1024*1024 else {
+ guard let size = try? attachment.resourceValues(forKeys: [URLResourceKey.fileSizeKey]).fileSize, size < 25*1024*1024 else {
Describe the Bug
Bug Description
Any file above 8 megabytes is not accepted. Recently, Discord changed the free file upload limit to 25 megabytes, and level 2 and 3 boosted servers increase the limit for all users to 50 and 100 megabytes respectively.
Actual Behaviour
The upload fails.
Expected Behavior
The upload should succeed.
Reproducing the Bug
Version
0.6.1
Category
Media (images, audio, video etc.)
Relevant Log Output
No response
Screenshots
No response
Additional Info
No response