Solved

Using command to open files from an online file storage in Aurena

  • 7 February 2022
  • 5 replies
  • 201 views

Badge +2

Hi,

I am working with Aurena and need to add a command or some kind of hyperlink that opens a PDF file from an online storage drive . The problem is that the instruction navigate checks and opens only URLs that start with http:// or https:// and I need it to open a URL that starts with file:///.

 

How do I customize a command so it will open a URL like that? Or do I have some other option to achieve this?

icon

Best answer by Charith Epitawatta 7 February 2022, 21:38

View original

This topic has been closed for comments

5 replies

Userlevel 7
Badge +31

Hi @juliuskahkonen,

Opening local files is not allowed as you have mentioned. This could be due to some security implications in opening files in the browser as well. As far as I know, this functionality is not yet planned for any upcoming releases either.

I would suggest you to create a topic In Ideation so that it would be considered for implementation in the future:

https://community.ifs.com/ideas

Hope this helps!

Badge +2

Hi @Charith Epitawatta and thank you for your reply.

 

Isn’t there any way I could bypass this check or modify the navigate instruction myself so that it could open these file:/// URLs?

 

Userlevel 7
Badge +21

Are you maybe able to prepare a custom field/attribute that is of type hyperlink and that contains the URL to the pdf?

Badge +2

Hi @eqbstal ,

Yes i was able to bypass the command http:// -check and add a link that started with file:///. But this still didn’t work.

Like @Charith Epitawatta suggested, the main reason that this does not work are security implementations in modern browsers. Executing files (like in this case PDF) from a website is blocked to protect against malicious intent.

Badge +3

I think that the only way to open a local file is to use Aurena Agent. It has OpenFile command, which opens the given file with the default application.