Sharing files one-off via http
See original GitHub issueHi y’all; brilliant work you’re doing here! 👋
I mentioned to @mafintosh on IRC that a common use case I have is to want to share a single file (or disparate set of files) with a friend. Sometimes that friend won’t have dat
installed, so it’s nice when I can share it over HTTP. Here are two ways I go about doing this:
1. oldweb
ssh eight45.net 'mkdir /tmp/fun'
scp file1.png ~/dev/file2.js eight45.net:/tmp/fun
ssh eight45.net 'ecstatic /tmp/fun -p 9111`
From here I can tell my friend to go to http://eight45.net:9111/
to see the files I shared.
2. ipfs
ipfs add -w file1.png ~/dev/file2.js
added QmSJ1Upq9RXzi167LwVpTqdBwXoemf5YDv3XDARqbRLPKE file1.png
added QmcGA3wQ2uBMQcEK1ae7rfY1T62v35qVrHaGPTJUQbhyzD file2.js
added QmNyNKUsiGpHcXjRjQjE49nfN4ayMAqac7YwkHwCf8x5te
From here I can tell my friend to visit https://ipfs.io/ipfs/QmNyNKUsiGpHcXjRjQjE49nfN4ayMAqac7YwkHwCf8x5te and they can access the files.
Maybe there are already ways to do this with dat that I don’t know about, but here are the challenges I see:
dat share foo.png
will create a dat for everything in the current directory. Having some way to make a transparent, ephemeral.dat
directory for sharing a few ad-hoc files would be useful.- Some way for others to access the dat over http. IPFS makes everything accessible through its gateway on ipfs.io. Hashbase looks promising – maybe permit anonymous use for small files?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:15
Top Results From Across the Web
The 15 Best Ways to Share Files With Anyone Over the Web
With these 15 tools, you can share files quickly without app downloads, account registrations, or any cloud storage setups. quick-share-files.
Read more >11 Best Ways to Transfer, Share or Send Large Files in 2022
Discover the 11 Best Ways to Transfer, Send or Share large files. Pros & Cons, Free & Paid tools. Services you can start...
Read more >Share Files Online in 2022 [Free File & Folder Sharing Guide]
Sharing files online is actually easy with the right tools and instructions. Learn how to share files online with 5 top sharing services....
Read more >How to share large files for free - Tech Advisor
The most obvious way to send a file that's too big for email is using a dedicated file transfer site, of which there...
Read more >Best Ways to Transfer Large Files - DNSstuff
Find out what file transfer tool is best for you! ... allowing you to transfer using FTP, FTPS, SFTP, and HTTP/S over IPv4...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I agree with @noffle that an ipfs.io-style public gateway would be a great asset for the community. datbase.org only seems to give you a preview, not the raw data.
What are the barriers to setting one up?
There are dat gateways on github. Just have to shoulder the cost. It also has problems with URLs not working right