Live data from Hacker News

How to copy a file between devices? (2022)

grdw.nl

201–210 of 354 posts

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

#202
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…

in the mid 90s i worked in a machine shop that had a side business where they had catalogs. They were trying to send .TIFF files over 14.4 or 28.8 modems. TIFF files over 10MB, so no floppy (easily.) No CD-R, Jazz/zip. These days in the same circumstance as you (and they) had, i'd fedex them a USB stick, or optical disc, depending. Because the first time someone said "the web page you linked is just displaying garbag…

As was pointed out in a cousin comment, it's not necessarily the browser or the webserver configuration.

SSL proxies -- corporate middleware -- have a habit of breaking this way, by stripping the content-disposition field or similar.

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

#203

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…

> Writing code is fun, but I can't find much of a downside with Bluetooth here.

Yesterday my son needed to transfer a video file from his Android phone to his school iPad. We tried Bluetooth, but it simply kept failing, no matter what we tried. The devices saw each other and could be paired, but file transfer didn't work at all. We tried sending the same video file to another Android phone, and it just worked on first try.

So, even basic Bluetooth doesn't work in all cases, unfortunately. He ended up recording a video of his phone playing the video... :)

> I don't expect Apple to play nice with anyone else...

This seems to be the problem in our case.

Tonight I'll setup a Nextcloud on our network, this should work properly.

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

#204

Been using KDE Connect for years and it can do exactly that, along with clipboard sharing, SMS, and device notifications. https://kdeconnect.kde.org/

I recently started using KDE Connect because I was fed up with the way I had to send photos from my Android phone to my Ubuntu desktop. I usually did that by email, or in some rare cases I plugged a USB cable in to connect.

KDE works over Bluetooth, I guess, but it was super fast for transferring around 20 to 30 photos at the same (maybe more might also work, didn't try that).

But the most important thing was that I could look at the thumbnails of the photos before marking them for transfer. This process was always very slow with an USB connection, because it was always trying to 'thumbnailize' every photo in the folder (which were 100s or 1000s). Picking the right photos by obscure datetime-name is not fun.

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

#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). Tech monopolies prefer to ignore standards (looking at who implements which parts of Matter is pretty hilarious in that regard), and killed a whole range of obvious things in the process.

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

#206
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…

Most webservers have a way of adding a header# Content-disposition "attachment; filename=$1"; that forces downloads. Nginx at least guesses based on file extension / mime type. # https://stackoverflow.com/questions/9054354/how-to-force-fil... # https://stackoverflow.com/questions/37131398/how-to-configur... FYI - I've also recently run across end users who are likely victims of overzealous IT departments that disable…

I have that header. Yet some personal iOS device decided to ignore it on safari. Don't know how, don't know why. Computers being computers.

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

#207
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…

Have you tried Dropbox links? The best solution I have found.

But I agree it’s a mess.

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

#208
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…

Nextcloud works well for this, and as the files are already on your server you don't have to upload anywhere, you just share the folder, put an expiry date on and send them the url

I know, but even sending a link is not that straightforward in my experience.

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

#209

Any hackers left here? Why no one mentions netcat? # send cat file | nc -l -p 8888 # receive nc IP-OF-SENDER 8888 > file this works as long as both computers are connected to the same network, for example the internet

Assume that both devices are behind a different NAT with no inbound ports publicly accessible, which is a very common scenario - e.g. a phone behind a cell provider's carrier-grade NAT and a computer on a firewalled corporate network. The median user controls 0 public IPv4 addresses.

What would a canonical hacker do here?

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

#210

Any hackers left here? Why no one mentions netcat? # send cat file | nc -l -p 8888 # receive nc IP-OF-SENDER 8888 > file this works as long as both computers are connected to the same network, for example the internet

Assume that both devices are behind a different NAT with no inbound ports publicly accessible, which is a very common scenario - e.g. a phone behind a cell provider's carrier-grade NAT and a computer on a firewalled corporate network. The median user controls 0 public IPv4 addresses.

FWIW I connect to my corporate network through VPN, so more or less direct connectivity exists. At least TCP works.
Post reply on HN