I cloned a basic Umbraco site repo from GitHub. Opened sln file with Visual Studio 2017, ran build which downloaded packages and built successfully.
IIS express displayed site ok. Browsed to media folder in back office but unable to view images that are on the file system. i.e images within folders 1001 1002 etc. Project folder(file system) and Visual Studio displaying images ok.
Are the files in the media folder included also in the github repository ?
If yes, are you using the same database as the person who added them ? Because the media tree in the backoffice is built up from the database, not the file system.
Typically the media folder is something you don't keep in github.
Thanks for feedback, this is a basic start up site. media folder has one image and DB is .sdf file in app_data folder.
I am testing workflow to share Umbraco source files via Git/ GitHub/ GitLab.
I think this maybe down to me adding packages folder to .gitignore and when cloning repo and running visual studio it is downloading the Umbraco package and re installing Umbraco.
Could you advise how/which files you have in source control
media folder images missing
Dear Umbraco Team
I cloned a basic Umbraco site repo from GitHub. Opened sln file with Visual Studio 2017, ran build which downloaded packages and built successfully. IIS express displayed site ok. Browsed to media folder in back office but unable to view images that are on the file system. i.e images within folders 1001 1002 etc. Project folder(file system) and Visual Studio displaying images ok.
any ides why back office not displaying them ?
Thanks Dibs
Hi Dibs,
Are the files in the media folder included also in the github repository ?
If yes, are you using the same database as the person who added them ? Because the media tree in the backoffice is built up from the database, not the file system.
Typically the media folder is something you don't keep in github.
Dave
Hi Dave
Thanks for feedback, this is a basic start up site. media folder has one image and DB is .sdf file in app_data folder.
I am testing workflow to share Umbraco source files via Git/ GitHub/ GitLab. I think this maybe down to me adding packages folder to .gitignore and when cloning repo and running visual studio it is downloading the Umbraco package and re installing Umbraco.
Could you advise how/which files you have in source control
Thanks Dibs
Hi Dave
Issue resolved, my lack of attention to detail in the .gitignore file was the reason for errors.
Thanks Dibs
is working on a reply...