-
January 5th, 2022, 15:55 #1
URL API changes, disables functionality working since FGC?
Previously a user could have a url("file://D:\Sounds\44mag.wav") and the OS would process it with the associated app the user had configured. This no longer works.
What is the option now to do this with the recent update?---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
January 5th, 2022, 20:33 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
There is not. Direct file URLs are not allowed for security purposes.
It was pointed out that any command could be run on a client from a mod using that method; which is a security risk.
Only non file/data schemes can be used in link URLs.
Regards,
JPG
-
January 5th, 2022, 21:20 #3
Given local sounds are used by a few of us (if not many) and there is no native API to support sound, is it not possible to extend a prompt with a confirmation and even maybe a "yes to all" option that would allow local mp3/wav file execution?
-
January 5th, 2022, 21:45 #4
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
No, based on the security risks presented to us; we will not be allowing file:// or data:// URL access. All other schemes are allowed; as they do not allow direct interaction with the local machine.
If you want to host locally, you could always set up your own local web server. (i.e. install web server, expose the files you definitely want to expose, and then use https://localhost/<file>)
Regards,
JPG
-
January 5th, 2022, 21:47 #5
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks