Simple ad-hoc file sharing

There is a distinct lack of simple, ad-hoc file sharing mechanisms for one-off file transfers between platforms. Maintaining an ftp or http server securely and grant users access to files is cumbersome. An ssh guest account opens more than you’d like, and still requires you to somehow grant access to a certain file to a user and then close it. IRC requires that the file is on the box you run the client on (which is often not your local box), and MSN requires that you add people to your contact list, assuming you don’t use it through bitlbee anyways.

Just run wwwshare filename, and it’ll print an URL and start a wannabe http server on a random port (8000-9000) for a single session. When the file is downloaded, it exits. No setup or cleanup required.

Great script!
I just added a line using xclip to copy the url to the clipboard, and I replaced
Content-Type: application/octet-stream
by
Content-Type: $(file –brief –mime “$file”)
which seems to help the browser.

If you need to add icons to desktop but somehow unable to do so you may move to this platform show desktop icons in windows 10 which is known to be hub of information and will also help you to clarify all your hurdles. Try out for once.