You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
All: Fixes #371 (sort of): Allow resources greater than 10 MB but they won't be synced on mobile
This commit is contained in:
@ -166,6 +166,9 @@ function shimInit() {
|
||||
resource = Object.assign({}, resource, defaultProps);
|
||||
}
|
||||
|
||||
const itDoes = await shim.fsDriver().waitTillExists(targetPath);
|
||||
if (!itDoes) throw new Error('Resource file was not created: ' + targetPath);
|
||||
|
||||
const fileStat = await shim.fsDriver().stat(targetPath);
|
||||
resource.size = fileStat.size;
|
||||
|
||||
|
Reference in New Issue
Block a user