You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Co-authored-by: Laurent Cozic <laurent22@users.noreply.github.com>
This commit is contained in:
@@ -344,7 +344,7 @@ function shimInit(options: ShimInitOptions = null) {
|
||||
const detectedType = await fileTypeFromFile(filePath);
|
||||
|
||||
if (detectedType) {
|
||||
fileExt = detectedType.ext;
|
||||
fileExt = fileExt ? fileExt : detectedType.ext;
|
||||
resource.mime = detectedType.mime;
|
||||
} else {
|
||||
resource.mime = 'application/octet-stream';
|
||||
|
||||
Reference in New Issue
Block a user