by gushogg-blake on 8/9/24, 7:33 PM with 11 comments
cd some-dir; simple-upload-server
And then going to 192... and getting a page with a single file upload, ideally with drag and drop, that just puts any uploaded file into `some-dir`.
by gushogg-blake on 8/9/24, 7:45 PM
git clone https://github.com/Majidkn/nodejs-simple-file-upload
cd nodejs-simple-file-upload
npm i
npm start
by codingdave on 8/9/24, 9:38 PM
If so, you don't need a web server. Share the directory on the destination box as a network share. Open that shared directory on the source system, and drag away. Details depend on what OS we are talking about, but why re-invent shared drives/directories?
by nicodemusdu on 8/11/24, 7:32 AM
Hey, check out Filebrowser. It's this cool open-source tool I found. You just drag files onto a webpage to upload them, and you can manage everything right there. Super easy to use and totally free. Worth a look if you need to organize files online.
by solardev on 8/10/24, 7:10 PM
Probably setting up a sftp or ssh daemon (enabling rsync and scp) would be about as simple and much safer.
If you want to stick with HTTP, it could be a simple PHP or JS page protected by basic auth. This isn't really a web server issue, you just need to write a simple HTML page to enable that upload.
by mks_shuffle on 8/10/24, 9:55 AM
uploadserver: https://github.com/Densaugeo/uploadserver
python built-in: python -m http.server <port> (does not support upload)
by kejaed on 8/10/24, 2:19 AM
by vednig on 8/10/24, 12:08 PM
Code on Github: https://github.com/doshareme
by sandreas on 8/10/24, 1:35 PM
by austin-cheney on 8/10/24, 3:43 PM
1. Set up SMB sharing. It’s amazing and universal across different operating systems. Then you can go to \\192.168.whatever to access your files with drag and drop.
2. Set up a netbios name for your new file server so that it can be as simple as \\x.
3. Set up PiHole on your local network as a simple domain manager and fall back to 1.1.1.3 or 8.8.8.8 for free public DNS services. Then point your router to your server IP address for DNS resolution to custom domains. Now you can set up custom domains like www.x.
4. You can write your own web server easily. I did. Now I have universal proxy and domain redirection via a simple config file. I can proxy anything from webpages to 20gb mp4s directly into the browser. This will get you started https://github.com/prettydiff/webserver/
5. Create symlink between your web page root and your file share. Now your files are available via domain through the browser like https://www.x/files/
Good luck
by verdverm on 8/9/24, 8:04 PM
It works both directions over ssh
by aborsy on 8/11/24, 2:23 PM