question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sharing files one-off via http

See original GitHub issue

Hi 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:

  1. 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.
  2. 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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:15

github_iconTop GitHub Comments

2reactions
edsilvcommented, May 26, 2018

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?

1reaction
pfrazeecommented, May 26, 2018

There are dat gateways on github. Just have to shoulder the cost. It also has problems with URLs not working right

On May 26, 2018, at 10:00 AM, Edward Silverton notifications@github.com wrote:

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?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found