#Deploying a website with images
10 messages · Page 1 of 1 (latest)
I wanted to test deploying a website, but after heroku cancelled the free tier, there is no other option, right ?
Does someone have experience with netlify ? Can i store images on there ?
Ya i had experience deploying websites
But what do u mean by storing images ?
i deployed the site through github so im using the file system on there, but not sure if storing images on github is the best practice
will i not need to commit every image that i want to add ? 😄
So u want images to show up in ur website ?
ye i basically have a car parts website and i want to do basic crud operations with them, an overview page and a page for adding a new car part for now
Hi, I have experience with Netlify. Storing images shouldn't be a problem at all and you get something like 100gb/month bandwidth on the free tier which is plenty.
How are your users uploading images? with an html tag? I'm not 100% sure of the mechanics but that should upload the users file to your sites root directory which you can move to an assets folder with code.
The act of uploading the image to the root directory, hosted on Github and served from Netlify, will trigger the automatic redeployment of the site on Netlify which will update Netlify's version of your code and all related assets including images. So you wouldnt need to physically reploy the code every time a user uploads an image, it should be automatic.
Google Drive is not a good idea. If you need to host the images somewhere else consider IPFS and use a pinning service like pinata. Github has an imagebot extension which automatically optimizes images for your repos to keep them as small as possible though.