psi-4ward / psitransfer

Simple open source self-hosted file sharing solution.
BSD 2-Clause "Simplified" License
1.45k stars 211 forks source link

Bug when uploading a folder #268

Open hugosxm opened 1 year ago

hugosxm commented 1 year ago

Hi,

I'm searching a wetransfer alternative for my users, something self-hosted, and with a docker image that we can run on k8s. So i found psitransfer, and it is very cool !

I tested it and I really think it could fit for us, but i found a little flaw that i think it is worth mentioning !

Lets say you have a folder structure like this

PARENT / TOTO / file1 / TATA / file1

And you drag and drop the PARENT folder to psitransfer, it will flat the files to file1 and file1 but after that if you try to download one of them you can't

log files :

psitransfer-psitransfer-1 | [Error: ENOENT: no such file or directory, open '/data/be7c62b0b94d/a484daaa-d6f4-4d25-b84f-fc3d7ab2952f'] { psitransfer-psitransfer-1 | errno: -2, psitransfer-psitransfer-1 | code: 'ENOENT', psitransfer-psitransfer-1 | syscall: 'open', psitransfer-psitransfer-1 | path: '/data/be7c62b0b94d/a484daaa-d6f4-4d25-b84f-fc3d7ab2952f' psitransfer-psitransfer-1 | }

The best solution would be to make psitransfer "folder aware", so it could be as "powerfull" as wetransfer while being less bloated and much cooler to use... But if this is too complicated, maybe juste add a check that throw a warning ?

Just wanted to share my little discovery and help a small amount to make that project perfect :)

Sorry english is not my first language