Media that I add to Umbraco is unable to be seen by other developers
Hi there,
I am working on a project in Umbraco 10 with a couple other developers. I am able to add media, render it on my site, and view it, and it works great. However, any media that I uploaded is unable to be seem by other developers, and any media they upload is unable to be seen by me.
wwwroot/media is git ignored, but Umbraco Source Control even says that is correct. It contains all the images I posted in content, but none from the other developers.
Is there some kind of source control changes that we need to do? Or are we uploading media correctly? Any input helps.
Right, in this case, you'll need to remove the git ignore line for the media folder if you intend to work in collaboration with other developers, as you won't be able to push the media files uploaded by you or pull the ones uploaded by others which is the reason you don't see them.
The reason why this folder is git ignored is that media files tend to take up a lot of disk space = your git repo will blow up in size = your git operations will take longer.
The ideal approach is to store the media in an e.g. blob storage or any external storage to which you can upload them and access them from the backoffice.
That is what we do on Umbraco Cloud and it's also what pretty much any larger project is using :)
Media that I add to Umbraco is unable to be seen by other developers
Hi there, I am working on a project in Umbraco 10 with a couple other developers. I am able to add media, render it on my site, and view it, and it works great. However, any media that I uploaded is unable to be seem by other developers, and any media they upload is unable to be seen by me.
wwwroot/media is git ignored, but Umbraco Source Control even says that is correct. It contains all the images I posted in content, but none from the other developers.
Is there some kind of source control changes that we need to do? Or are we uploading media correctly? Any input helps.
Thank you for your time.
Hi, do you store the images on disk or in external storage instead?
Hi Lindow, I am still pretty new to Umbraco, but it seems to store the images on disk automatically when I create in the Media tab.
Is there a way to configure this differently?
The file structure looks as follows:
Right, in this case, you'll need to remove the git ignore line for the media folder if you intend to work in collaboration with other developers, as you won't be able to push the media files uploaded by you or pull the ones uploaded by others which is the reason you don't see them.
The reason why this folder is git ignored is that media files tend to take up a lot of disk space = your git repo will blow up in size = your git operations will take longer.
The ideal approach is to store the media in an e.g. blob storage or any external storage to which you can upload them and access them from the backoffice.
That is what we do on Umbraco Cloud and it's also what pretty much any larger project is using :)
I see! Thank you for the help!
Happy to help :)
is working on a reply...