Live data from Hacker News

Transfer.sh – Easy file sharing from the command line

transfer.sh

31–40 of 88 posts

Re: Transfer.sh – Easy file sharing from the command line

#31
I used to self-host transfer.sh, but nowadays I just use WebDAV.

1. it's easy to get WebDAV running, most of HTTP server support it through modules. or you could run it with rclone, on non-standard port or behind a reverse proxy

2. I don't share upload access with others, it's only for my own use. and this way I don't need to deal with huge uploads or illegal contents.

3. I could also just curl it, the uploaded content will have proper mime types. It's convenient for me to share pictures and videos this way on Telegram because it generate previews for me, and it's easy to just copy-paste a link to send to more than one person.

  curl https://user:password@domain.tld:port/path/to/file.png -T file.png
4. I could use WebDAV for various other cases, such like keeweb instance, Orgzly (android) notes syncing, saving keepass database etc.

Could write a simple shell script to include random characters in the URL, copy url to clipboard etc, such like this one I wrote [1]

btw for plain text, I prefer to use fiche [2] a simple netcat based pastebin. I have a public fiche instance [3] which allow people to upload with bash/zsh/netcat and show webpage with syntax highlighting. Text usually consume very a few of storage and not that "sensitive" like some photos and videos could be, so it's less troublesome to provide a public service for that. I've also write a Telegram bot for easily upload to my pastebin.

Lifespan of my WebDAV uploads and pastes are 1 month, it's very easy to clean them with crontab

  @daily find ~/webdav/tmp -mindepth 1 -maxdepth 1 -type f -ctime +30 -delete
[1] https://ezup.dev/git/dotfiles/file/.local/bin/eztmp.html

[2] https://github.com/solusipse/fiche

[3] https://ezup.dev/p/

Re: Transfer.sh – Easy file sharing from the command line

#33
post #25
post #8

This is exactly the use case for Magic Wormhole, which is what the cool kids use to transfer files: https://github.com/magic-wormhole/magic-wormhole Magic Wormhole uses an end-to-end PAKE to create an encrypted transport between two points in the Internet, using a rendezvous server. It doesn't store files, which is almost never what you want; it's not a way to send a file and have 10 or 100 people download it. But it…

No, it's not. Transfer.sh does not require anything to be installed in both sender and receiver ends. Only the browser is enough.

Then it's not secure.

Re: Transfer.sh – Easy file sharing from the command line

#34
post #20

Earlier quoted context omitted.

This and croc. Link: https://github.com/schollz/croc

Considering that a small deviation from a cryptographic protocol could fully turn cipher text to plaintext in a revered tool frequently recommended in HN: https://redrocket.club/posts/croc/ I would hesitate a bit before rushing to use cool kids’ software (until it’s sufficiently proven).

I don't know anything about croc, I haven't looked carefully at it, and don't recommend it (or have any opinion on it). Lots of smart people have looked at Magic Wormhole, which is one of the things that makes it neat.

Re: Transfer.sh – Easy file sharing from the command line

#36
post #33
post #25

Earlier quoted context omitted.

No, it's not. Transfer.sh does not require anything to be installed in both sender and receiver ends. Only the browser is enough.

Then it's not secure.

You seem to be missing the point. If I wanted to send a funny webm in a room on Discord or IRC for example, if I didn't want to upload it directly to Discord that is, I could use this with ShareX to upload it and get a link that's easy to share. It's not supposed to be secure. It has its place alongside Magic Wormhole just fine.

Re: Transfer.sh – Easy file sharing from the command line

#38
post #26

Earlier quoted context omitted.

> Files stored for 14 days I think that's the reason, why this service is not very interesting for illegal content.

Illegal content is generally ephemeral regardless of where you host it. I don't think this changes much, it could still provide a good home for some illegal things.

I would very much like it for people to start calling it immoral content more than illegal content.

Re: Transfer.sh – Easy file sharing from the command line

#39
post #33

Earlier quoted context omitted.

Then it's not secure.

You seem to be missing the point. If I wanted to send a funny webm in a room on Discord or IRC for example, if I didn't want to upload it directly to Discord that is, I could use this with ShareX to upload it and get a link that's easy to share. It's not supposed to be secure. It has its place alongside Magic Wormhole just fine.

If you want to send a funny webm, use whatever you'd like. The comment to which I responded to said "no, this isn't the same use case, because Magic Wormhole makes you install something". If they'd said "this isn't the same, it's supposed to be OK for this to be grievously insecure", I'd have shrugged and moved on.

Re: Transfer.sh – Easy file sharing from the command line

#40

I used to self-host transfer.sh, but nowadays I just use WebDAV. 1. it's easy to get WebDAV running, most of HTTP server support it through modules. or you could run it with rclone, on non-standard port or behind a reverse proxy 2. I don't share upload access with others, it's only for my own use. and this way I don't need to deal with huge uploads or illegal contents. 3. I could also just curl it, the uploaded conte…

I’m a big fan of WebDAV. As a bonus, you can host tiddlywiki in WebDAV and it just works.

The only downside as far as I can tell is WebDAV support in Windows Explorer has problems with modern TLS setups.

Post reply on HN