Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

v04bvs

macrumors member
Original poster
Oct 10, 2012
35
19
Hello. I can't figure out how to replace a file in the iCloud Drive using a web browser (https://www.icloud.com/iclouddrive/). I'm using iCloud Drive to store my KeePass passwords database. I'm using KeePassium to use passwords from that database on my iPhone. My computer running Linux and I want to replace a database with a new one using browser. If I just drag new database file onto browser, it's uploaded with new name (Passwords 2.kdbx). If I delete old file first and then drag a file onto browser, it works, but KeePassium still uses old file. I can see that iCloud Drive synchronized those changes and I can even see that KeePassium uses something like "Recently deleted / Passwords.kdbx". So I assume that KeePassium tracks that file via some identifier and able to handle renames/deletes which is fine but now I have to always remove and re-add that database file in KeePassium app.

What I need is to replace file contents via web browser. Is it possible?
 

0128672

Cancelled
Apr 16, 2020
5,962
4,783
In the browser version there's no option to Replace (either by using the Upload button or dragging in) as there is when uploading via iCloud Drive on Mac (and maybe in Windows, not sure). The rest of your question though relates specifically to the KeePassium app, and I wonder if the developers might have a suggestion for you.
 

KeePassium

macrumors newbie
Aug 9, 2021
3
2
So I assume that KeePassium tracks that file via some identifier and able to handle renames/deletes which is fine but now I have to always remove and re-add that database file in KeePassium app.
Yes, this is the case — except this is a file system feature, not the app's.

When you add a database to KeePassium, the app receives a special reference to the file. It is based on file ID, rather than path. Before opening the file, KeePassium has to ask the system what is the current path of the file with the given ID. So if you deleted the database and copied another one in its place — for a human it looks like the same file updated, but for iOS it is a different file with a different ID...

As a possible workaround, try one of the iCloud client apps for Linux — they might handle this differently. (As a new member, I won't risk posting the links.)
 
  • Like
Reactions: v04bvs and 0128672

KeePassium

macrumors newbie
Aug 9, 2021
3
2
I guess I'll try to use Windows VM for now.
I have received some complaints about iCloud Drive sync issues on Windows 10. So you might want to alter either the cloud or the OS.

P.S. I assume cloud storage is a requirement for you. If not, you can transfer the database from the Linux machine to the iPhone using something like qrcp.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.