Provide easy way to export and import attachments
Author: FloLrx1981Created Mar 19, 2024Updated Sep 29, 2026
Overview
Attachment are empty files after import from XML file
Steps to Reproduce
Using the CLI
- Create a keepass (cli db-create)
- Add an entry with an attachment (cli add)
- Export the keepass as an xml file (cli export)
- Create a second keepass by importing the previous xml (cli import)
Expected Behavior
In the new keepass, I expect that the attachment has data
Actual Behavior
The attachment has a size of zero bytes in the new keepass
Context
I would like to add autotype with the cli As it seems to be not implemented, I export the database as XML, I modify the XML and then I import the XML Even if I don't modify the xml by hand, the attachments are empty after the import
Version
KeePassXC - Version 2.7.7 Revision: 68e2dd8 Qt 5.12.8 Debugging mode is disabled. Operating system: Ubuntu 20.04.6 LTS CPU architecture: x86_64 Kernel: linux 5.15.0-101-generic Enabled extensions:
- Auto-Type
- Browser Integration
- Passkeys
- SSH Agent
- KeeShare
- YubiKey
- Secret Service Integration Cryptographic libraries:
- Botan 2.12.1
Operating System: Linux Desktop Env: Gnome Windowing System: X11/Wayland
Source: keepassxreboot/keepassxc