Live data from Hacker News

How to copy a file between devices? (2022)

grdw.nl

321–330 of 354 posts

Re: How to copy a file between devices? (2022)

#321
post #292

Earlier quoted context omitted.

IPv6.

What about it?

It will solve all of our problems for good and after it's implemented across every ISP, everyone will live in an interconnected utopia without NAT and other obstacles getting in the way of direct P2P communications across any device. /s

It will at least address the NAT problem. Theoretically, if ISPs truly embrace it, it will also open up the possibility of direct P2P communication across most devices on the Internet. Can't remember if there's a standardized protocol for IPv6 like UPnP but if not you can just configure your firewall manually. Of course, that's assuming ISPs allow you to do so.

Tbh, I misread your OP and I somehow got the idea you were talking about NAT. Static addressing is also a problem but a smaller one. In fact, IPv6 probably does nothing to help here, and may even make the problem worse with address randomization (which is a legitimate privacy feature, but still).

Re: How to copy a file between devices? (2022)

#322
post #301

For this I created a public Backblaze bucket, created a lifecycle rule that deletes files after 7 days, created an application key with write privileges but not read ones, then wrote a script that uploads an arbitrary file under a random name so only people with the name will be able to download or overwrite it. The best part is that the file is available under an HTTP direct link, not behind an obscure webpage with…

How can you be sure the underlying storage provider actually deleted the file?

They stop billing you for it... No force is greater than the market

Re: How to copy a file between devices? (2022)

#323
post #253

Earlier quoted context omitted.

What you really want is the native iOS or Android version of this (or of any Magic Wormhole derivative), which the wormhole-william people are working on (I think the Android version already works).

How is an iOS version of this going to be any better than web? It seems iOS imposes a lot of storage restrictions on apps.

Every time you hit the web page you have to re-trust that it's not stealing secrets from you. It's not end-to-end secure; in fact, you literally might as well just upload your whole file to that site and just let it handle the wormholing for you.

Re: How to copy a file between devices? (2022)

#324
post #136

I regularly have to send files to customers, from a few megabytes to a few gigs. It's incredibly hard. Mail? Goes to spam. WeTransfer? Mail clients break URL. Download from my website? Some stupid browser will display the zip data onscreen. Send the link through messenger? Messenger breaks the link. SaaS gallery? Some file managers can't open the zip file. I've been doing that for two years now. Still don't have a 10…

>Download from my website? Some stupid browser will display the zip data onscreen. Are your customers using IE6 or something? Customers like that should be fired.

> Are your customers using IE6 or something? Customers like that should be fired.

Looks like your company don't want millions of profit?

Re: How to copy a file between devices? (2022)

#325

Earlier quoted context omitted.

Android: install termux, `pkg install openssh`, and preferably run `termux-setup-storage` to give it access to storage folders. iOS: I think https://ish.app/ ? (If you're in the ~1% of smart phones not on Android or iOS, either this is trivial (postmarketos rocks) or you're on your own)

It also requires running a ssh server on the PC, and the even harder issue of having an externally accessible IP address that will allow ssh connections to the PC from the internet - I can do the former but I'm not entirely sure if the latter is even possible with my ISP.

I was responding to a comment that said,

> I have no idea how to use scp on my phone or how to move a file from my PC to my phone with scp.

so I'm comfortable assuming that they have an sshd and can reach it (though I grant, having an IP line-of-sight can be annoying).

Re: How to copy a file between devices? (2022)

#326
post #205

Writing code is fun, but I can't find much of a downside with Bluetooth here. "You can accidentally turn it on" (fair, I guess?) "and it drains battery like crazy" (it shouldn't unless you have a very buggy device) don't seem like that bad compared to Yet Another File Sharing App. I remember way back in the Android 4 era, my phone and my tablet both supported some "standard" form of WiFi Direct. It worked intuitively…

Yes, this is killing me. I have a colleague that told me "on iPhones I can super easily share files to someone else", and I'm like "20 years ago sharing files across devices was a non-issue, because we had STANDARDS (ok maybe 17-18 years ago rather). Sharing files wasn't considered a feature worth mentioning because every phone supported this out of the box (well not exactly, so the feature was having Bluetooth). Tec…

As much as I hate Apple for their repetitive NIH syndrome, Bluetooth has never worked flawlessly, and increasing filesizes made it increasingly maladapted.

Re: How to copy a file between devices? (2022)

#328

Earlier quoted context omitted.

Here is a list of open source options. This isn't the first time I have shared this on here either. Perhaps this is another sign that web search is failing us. SnapDrop - Site: https://snapdrop.net/ - Source: https://github.com/RobinLinus/snapdrop ShareDrop - Site: https://www.sharedrop.io/ - Source: https://github.com/szimek/sharedrop FilePizza - Site: https://file.pizza/ - Source: https://github.com/kern/filepizza…

None of them work like Airdrop or Nearby Share. You can't right click a file in the file explorer on PC or Mac and share it. Nor you can open a photo on your mobile photo app and chose share.

[deleted]

Re: How to copy a file between devices? (2022)

#329
If you want to copy files:

- from a linux computer/laptop

- to an android phone and

- not follow rule 2,

I'd like to suggest another alternative: `adb` (just platform tools) which has the `push` [1] command

    push [--sync] [-z ALGORITHM] [-Z] LOCAL... REMOTE
         copy local files/directories to device
         --sync: only push files that are newer on the host than the device
         -n: dry run: push files to device without storing to the filesystem
         -z: enable compression with a specified algorithm (any/none/brotli/lz4/zstd)
         -Z: disable compression
[1]: https://developer.android.com/tools/adb#copyfiles

Re: How to copy a file between devices? (2022)

#330

Earlier quoted context omitted.

Most people will happily install entire ad package from Meta and Google, but not some unknown "LocalSend app".

I know that Meta and Google make money from data, but they are also competent, so they can be trusted to at least not get breeched or sell the data to the an aggregator.

“But they feed us for free in our competent concentration camp!”
Post reply on HN