psi-4ward / psitransfer

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

Feature request: Allow admin to locally add files #241

Open SinTan1729 opened 1 year ago

SinTan1729 commented 1 year ago

I request the feature to let the admin locally upload files without uploading them again. I have a headless home server, which I only access through ssh. So, whenever I need to share a file link through psitransfer, I have to reupload the file to the server, even though the file is already there, and I'm basically accessing it through samba.

So, it'd be nice if there were a way to copy (or better yet, hardlink) a file to the upload directory directly and provide a link.

CyBuzz commented 1 year ago

If you can figure out how to generate the json, you can manually upload a file. I manually created a folder, file and json and restarted the server and it showed up in admin and I was able to DL the file. I would guess this could be added to the admin screen to upload and generate a json.

If the file is already there and you are just changing it, I would guess that you could just upload and overwrite it and then reboot the server. The file sizes might not align but if it is named the same it might work.

Maytrok commented 8 months ago

the system is not designed to put files locally. Sure you can generate a .json and name the file yada yada yada. But that's not the purpose of this App. The Design is to use the Upload and Download page in the browser. If you already have a file uploaded you can access this through the link. If you want to keep the file, you can bump up the retention time. If you wish a memorable link you can specify a bucked id at the upload time