psitransfer icon indicating copy to clipboard operation
psitransfer copied to clipboard

Bug when uploading a folder

Open hugosxm opened this issue 1 year ago • 0 comments

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

hugosxm avatar Mar 08 '23 16:03 hugosxm