1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

Mobile: Increase the attachment size limit to 200MB (#6848)

This commit is contained in:
Self Not Found 2022-09-14 19:21:21 +08:00 committed by GitHub
parent 66c9ee0a1a
commit e05c5598a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -866,9 +866,9 @@ class NoteScreenComponent extends BaseScreenComponent {
await shim.fsDriver().copy(localFilePath, targetPath);
const stat = await shim.fsDriver().stat(targetPath);
if (stat.size >= 10000000) {
if (stat.size >= 200 * 1024 * 1024) {
await shim.fsDriver().remove(targetPath);
throw new Error('Resources larger than 10 MB are not currently supported as they may crash the mobile applications. The issue is being investigated and will be fixed at a later time.');
throw new Error('Resources larger than 200 MB are not currently supported as they may crash the mobile applications. The issue is being investigated and will be fixed at a later time.');
}
}
}