Skip to main content
edited body
Source Link
Tiago Duarte
  • 5.5k
  • 2
  • 22
  • 44

I wrote an CSS file where I use a picture as background.

I have to Upload the Image I am using with Visual Studio somewhere. At the moment I am doing it like hierhere: http://www.learningsharepoint.com/2013/02/23/deploy-images-in-sharepoint-2013-with-visual-studio-solution-2/

It works but the problem is it only works on the main site and not on subsites because the relative path is different.

So my question is it possible to upload the picture to the root folder. So I can find the image like that "/images/image1.png" at the moment I can find the location where it is uploaded like that ../images/image1.png" but this doesn't work for sub sites.

I wrote an CSS file where I use a picture as background.

I have to Upload the Image I am using with Visual Studio somewhere. At the moment I am doing it like hier: http://www.learningsharepoint.com/2013/02/23/deploy-images-in-sharepoint-2013-with-visual-studio-solution-2/

It works but the problem is it only works on the main site and not on subsites because the relative path is different.

So my question is it possible to upload the picture to the root folder. So I can find the image like that "/images/image1.png" at the moment I can find the location where it is uploaded like that ../images/image1.png" but this doesn't work for sub sites.

I wrote an CSS file where I use a picture as background.

I have to Upload the Image I am using with Visual Studio somewhere. At the moment I am doing it like here: http://www.learningsharepoint.com/2013/02/23/deploy-images-in-sharepoint-2013-with-visual-studio-solution-2/

It works but the problem is it only works on the main site and not on subsites because the relative path is different.

So my question is it possible to upload the picture to the root folder. So I can find the image like that "/images/image1.png" at the moment I can find the location where it is uploaded like that ../images/image1.png" but this doesn't work for sub sites.

Source Link
user53548
user53548

Upload Image to root folder using modules

I wrote an CSS file where I use a picture as background.

I have to Upload the Image I am using with Visual Studio somewhere. At the moment I am doing it like hier: http://www.learningsharepoint.com/2013/02/23/deploy-images-in-sharepoint-2013-with-visual-studio-solution-2/

It works but the problem is it only works on the main site and not on subsites because the relative path is different.

So my question is it possible to upload the picture to the root folder. So I can find the image like that "/images/image1.png" at the moment I can find the location where it is uploaded like that ../images/image1.png" but this doesn't work for sub sites.