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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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