Dashboards & Visualizations

Accessing a file inside an app in Search Head using URL

keerthana_k
Communicator

I am trying to access a swf component present in a custom module created by me. While using just the file name inside the object tag in HTML, I was unable to load it. Will I be able to access the file by providing the URL? If so, what is the URL I should use? I have tried using the following URL and I got 404 error:

http://SearchHeadIP:8000/splunkApp/en-US/app/MyApp/appserver/modules/MyModule/test.swf

Generally, I would like to know how to access a file inside an app using URL in the browser.

Tags (1)
0 Karma
1 Solution

keerthana_k
Communicator

We had to place the swf component inside the appserver/static folder of our app. Then we were able to access it as follows:

<object id='mySwf' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' height='100%' width='100%'>
<param name='src' value='/static/app/MyApp/flex/test.swf'/>
</object>

View solution in original post

0 Karma

keerthana_k
Communicator

We had to place the swf component inside the appserver/static folder of our app. Then we were able to access it as follows:

<object id='mySwf' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' height='100%' width='100%'>
<param name='src' value='/static/app/MyApp/flex/test.swf'/>
</object>
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...