Closed Gedankenleser closed 1 year ago
Currently the attachment names are detected from the Enex export and used as base for attachments in QOwnNotes... All attachments that have no filename in the enex will be imported with generic names.
Do you have an example Enex where that doesn't work?
Here is a example file. (Test.zip) Exported from Evernote 10.45.18-win-ddl-public (3683) Editor: V 157.1.19252 Service: V 1.57.5
QownNotes Debug-Log:
[19:56:52] [debug] handleNoteTextFileName - 'name' was changed: "Test"
[19:56:52] [debug] storing note file: "Test.md"
[19:56:58] [debug] buildNotesIndex - 'noteSubFolderId': 0
[19:56:58] [debug] setupNoteFolderTables - 'database version': 15
[19:56:58] [debug] cloudConnection: CloudConnection:
I haven't managed to get the attachment out of Test.enex
yet altogether... Have to play around with it later. 😉
After getting around an issue to get the attachment at all I was able to import the file... As it turns out the filename really wasn't used for file-name safety, it is only used in the title of the link.
I'll try to get around that.
Took longer to implement than expected...
There now is a new release, could you please test it and report if it works for you?
Works! Thx!
Great, thank you for testing!
General question
Is it possible to get the orignal sames of the attachments while importing them? ( )
QOwnNotes is using a generic name (media-).
Relevant log output in the Log panel
Expand
``` ```Information about the application, settings and environment
Expand
QOwnNotes Debug Information =========================== ## General Info **Current Date**: `So Okt 9 17:42:18 2022` **Version**: `22.9.2` **Build date**: `Sep 27 2022` **Build number**: `984` **Platform**: `windows` **Operating System**: `Windows 10 Version 2009` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `GitHub Actions` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `no` **Settings path / key**: `\HKEY_CURRENT_USER\Software\PBE\QOwnNotes` **Application database path**: `C:\Users\Private\AppData\Roaming\PBE\QOwnNotes\QOwnNotes.sqlite` **Application arguments**: `G:\Downlaods\QOwnNotes\QOwnNotes.exe` **Qt Debug**: `0` **Locale (system)**: `de_DE` **Locale (interface)**: *empty* **Primary screen resolution**: `1920x1080` **Icon theme**: `breeze-qownnotes` **Notes in current note folder**: `6` **Calendar items**: `0` **Enabled scripts**: `0` ## Server Info **serverUrl**: `private` **appIsValid**: `yes` **notesPathExists**: `yes` **serverVersion**: `24.0.5.1` **appVersion**: *empty* ## Spellchecking **Enabled**: `false` **Selected language**: *empty* **Language codes**: *empty* **Language names**: *empty* **Application dictionaries path**: `C:\Users\Private\AppData\Roaming\PBE\QOwnNotes\dicts` ## Note folders **currentNoteFolderId**: `1` ### Note folder `Standard` **id**: `1` **isCurrent**: `yes` **activeTagId**: `0` **localPath**: `C:\Users\private\Nextcloud\Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **activeNoteSubFolder name**: *empty* **database file**: `C:\Users\private\Nextcloud\Notes\notes.sqlite` ## Cloud connections ### Cloud connection `Standard` **id**: `1` **isCurrent**: `yes` **serverUrl**: private **username**: `Private` **accountId**: `Private` ## Enabled scripts ## Settings **ActiveNoteHistoryItem** (NoteHistoryItem): `