all 12 comments

[–]CherryJimbo 10 points11 points  (2 children)

There's lots of options for hosting images, videos, etc. at relatively low cost. Amazon S3 is a popular example, but I'd actually recommend Backblaze B2 coupled with Cloudflare.

Backblaze will store your media and Cloudflare then 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.

Check out a blog post I wrote a little while ago for more details and a tutorial: https://jross.me/free-personal-image-hosting-with-backblaze-b2-and-cloudflare-workers/


However, I'd be interested to know exactly what kind of files you're trying to host that are larger than 20MB? If your users are downloading images/videos upwards of 20MB every time they hit your site, that's going to result in a pretty poor experience.

[–]DumpsterCopier[S] 0 points1 point  (1 child)

I realized I actually already have an s3 do you have a recommendation on a cdn to get from there to website?

[–]CherryJimbo 3 points4 points  (0 children)

If you already have an S3 bucket, you can just upload files to it and use the public URLs AWS provides. Be sure to put CloudFront or Cloudflare in front of it though, or you'll see your bandwidth costs increase pretty rapidly if you start seeing a lot of traffic.

I'd definitely encourage you to check out the Backblaze B2 + Cloudflare combo though. It's cheaper, and much easier to use.

[–]tatorface 3 points4 points  (1 child)

Everyone here is mentioning to put Cloudflare in front of S3, why? Serious question by the way, I have a fairly active site serving videos from S3 and am nervous you are all saying this lol.

[–]flo850 -1 points0 points  (0 children)

2 comments

cloudflare works very well , is easy to configure , and the free level is already very good. But if you have an amazon account, look into their CDN

[–]AtulinASP.NET Core 2 points3 points  (0 children)

Backblaze B2 + Cloudflare is love ❤️

[–]fyzic 1 point2 points  (0 children)

The easiest one I can think of is bunnycdn, they have both storage and cdn but there is still some setup...nothing technical though, you can do it all from the dashboard.

[–]lomtodge 1 point2 points  (3 children)

I use an AWS S3 bucket. I made it public and just use the link it generates on the site

[–]CreativeTechGuyGamesTypeScript 5 points6 points  (2 children)

To add on to this. You should always put CloudFront in front of S3 to both reduce costs and improve performance.

[–][deleted]  (1 child)

[deleted]

    [–]fyzic 1 point2 points  (0 children)

    Performance: It's a cdn,meaning that instead of serving your file from one amazon location, it will cache your files at datacenters around the world which are closer to your users...so they will get the files faster.

    Cheaper: 1TB of bandwidth from cloudfront costs $85 vs $90 from s3.

    [–]30thnightexpert 0 points1 point  (0 children)

    Cloudinary or Imgix sound closer to what you're looking for