Hi,
Here comes a really stupid question.
I am playing around with mashups and I created a mashup example using the sense workbench (I am using Sense Server 2.01).
Everything looks fine until I start playing around with the HTML.
I want to add some images but all I get are broken images. I am guessing it has to do with the path of the image files. However, I have put the files in the same folder as the extension HTML-file. (i.e. C:\ProgramData\Qlik\Sense\Repository\Extensions\<name of mashup>)
What am I doing wrong? Do I need to place the image files somewhere else?
Outtake from the code:
...
<default example code>
...
<body style="overflow:auto"><div id="CurrentSelections" class="qvobjects" style="position:absolute; top:0px; left:0px; width:100%; height:35px;"> </div>
<div id="Testimage" style="position: absolute; top: 100px; left: 100px; width: 780px; Height: 392px; border:1px dotted black" >
<img src="Test.PNG"/>
</div>
<div id="QV01" style="position: absolute; top: 491px; left: 100px; width: 400px; Height: 200px" class="qvobject"></div>
<div id="QV03" style="position: absolute; top: 491px; left: 500px; width: 400px; Height: 200px" class="qvobject"></div>
<div id="QV04" style="position: absolute; top: 691px; left: 100px; width: 400px; Height: 200px" class="qvobject"></div>
<div id="QV05" style="position: absolute; top: 691px; left: 500px; width: 400px; Height: 200px" class="qvobject"></div>
<div id="QV06" style="position: absolute; top: 691px; left: 900px; width: 400px; Height: 200px" class="qvobject"></div>
...
<default code>
Thankful for any help!
Best regards
Petter Grundström
Hey Ganesh,
the easiest way of doing it, is to upload you image to you default content library.
Therefore open any app and go edit mode.
Edit the App image
And upload your new image
Now you can use the image in your mashup by using following URL:
<img src="/content/Default/NAME_OF_IMAGE.png" />
Hope that helped
Hello,
Have you find a solution to your problem ?
We can't add files in extension folder : these files will not be read in http://.
Thank you for your help,
Best Regards,
Jaymerry
THe answer was that I had to import the images first.
Hi Petter,
We are facing the same issue that you have faced earlier. Could you tell us where did you imported those images.
Please specify the path you have used to import. It will be helpful to me.
Thanks,
Ganesh.
Hey Ganesh,
the easiest way of doing it, is to upload you image to you default content library.
Therefore open any app and go edit mode.
Edit the App image
And upload your new image
Now you can use the image in your mashup by using following URL:
<img src="/content/Default/NAME_OF_IMAGE.png" />
Hope that helped
Thanks Tobias.
Hello Tobias,
does it only way of uploading images?
What if I delete whole app and import it again? Will Qlik accept images in .zip archive and resolve them in http://?
Thanks in adv for any information.
You can add only the images from "Default" but not from "In app"
hello there
it doesn't allow me to upload a image in the default folder, just In App and can't use it.
do you know why is it?
thank you!