When publishing Umbraco web app from Visual studio, It does not publish media folders created within the Umbraco back office. It only publishes the images within their self created randomly numbered folders. i.e. 1001, 1002 etc..
I am using LocalDB .sdf file and publishing the App_Data folder
How do i get the media folders to be published during the Visual Studio publishing process ?
The folders you created in the media section aren't actually created on disc, they are 'virtual' and their ids and which images are mapped to appear within them in the backoffice are stored in the umbraco database.
The files themselves are stored in their own folder in /media/12345/filename.jpg
these need to be included in the visual studio project file to successfully deploy via web deploy.
However if your target deployment site has a different database to your local version, then this it is not enough to just copy up the files in the media folder, umbraco won't discover them and add them to the media section automatically, they need to be uploaded via the umbraco backoffice of target Umbraco site (and this will generate different urls too)
Publishing from Visual Studio 2013
Dear Umbraco Team
When publishing Umbraco web app from Visual studio, It does not publish media folders created within the Umbraco back office. It only publishes the images within their self created randomly numbered folders. i.e. 1001, 1002 etc..
I am using LocalDB .sdf file and publishing the App_Data folder
How do i get the media folders to be published during the Visual Studio publishing process ?
Thanks Dibs
Hi Dibs
The folders you created in the media section aren't actually created on disc, they are 'virtual' and their ids and which images are mapped to appear within them in the backoffice are stored in the umbraco database.
The files themselves are stored in their own folder in /media/12345/filename.jpg
these need to be included in the visual studio project file to successfully deploy via web deploy.
However if your target deployment site has a different database to your local version, then this it is not enough to just copy up the files in the media folder, umbraco won't discover them and add them to the media section automatically, they need to be uploaded via the umbraco backoffice of target Umbraco site (and this will generate different urls too)
Cheers Marc
is working on a reply...