r/webdev•
fatpollo

Where/how can I upload a whole bunch of pictures and videos, so that I can link to them from my static site? [CDN question]

I am having a fantastic time working on a little site on Netlify. I use Git, but I don't like GitHub, so I use Netlify-CLI to simply build my site onto a tmp directory, and deploy all the files therein directly.

Everything's been going so well! Up until I tried to sync Large Media manually. It seems like I simply cannot make use of Netlify's Large Media facilities without GitHub (it insists on Git-LFS and some other stuff).

I just want some CDN that I can (essentially) rsync a local directory into, that then allows me to link said resources from within my static site, so that users can get pictures, etc. asap.

Is Amazon S3 what everyone uses? Netlify LM offers some really nice features, like uploading a very large file, but then being able to do image transformations via query-string (?crop=fit&height=500) which would be fantastic to have.

I like supporting scrappier upstarts, I don't need 100% uptime for a client or anything like that.

Posted Nov 14, 2020, 5:07 PM UTC

53
CherryJimbo•

I'd recommend storing all your media on Backblaze B2 coupled with Cloudflare.

Backblaze will store your media and Cloudflare then (effectively) serves it. Because both Cloudflare and Backblaze are members of the Bandwidth Alliance, the bandwidth is entirely free. You'll only ever pay for storage and API requests at Backblaze - the first 10GB of which are entirely free. Each GB of storage after that would only be $0.005/month, again with no transfer costs whatsoever as long as you're using Cloudflare. I wrote a blog post about this at https://jross.me/free-personal-image-hosting-with-backblaze-b2-and-cloudflare-workers/ if you'd like to learn more.

There's no support for query string transformations, so you'd need to build that yourself (it would be totally possible using Cloudflare Workers), or use an image hosting platform/CDN that has this functionality built in.

2
BigBalliexpert•

I use my own server, it makes things much easier & faster after the initial setup.

1
giolona•

Hi, I normally use https://cloudinary.com/ for storing images and videos. There is a free tier as well.

1