Anonymous - 2023-05-26

Originally posted by: cryptoAlgorithm

Ah this is due to the file size limit being hardcoded in the upload check. It would simply require a single change here:

https://github.com/SwiftcordApp/Swiftcord/blob/89f48337cc2d46427b229e72bd050349183b9057/Swiftcord/Utils/Extensions/MessagesView%2B.swift#L107

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 {