URL rewrite support added

Started by Mario, July 15, 2019, 11:25:05 AM

Previous topic - Next topic

Mario

The IMWS embedded in IMatch now supports a special URL named /userdatafolder/

This URL refers to the physical %APPDATA%\photools.com\IMatch6 folder on the user's PC.
If a hypothetical user DONALD stores a file mystyles.css in

C:\Users\Mario\AppData\Roaming\photools.com\IMatch6\imws\mystyles.css,

this file can now be accessed easily via the URL

/userdatafolder/imws/mystyles.css

in any app (and the web browser of course).

This makes it super-easy to support user-defined style sheets, graphics and other resources. Normally these would be inaccessible because, for security reasons, IMWS and browsers don't give access to files and folders outside the 'root', which is C:\ProgramData\photools.com\IMatch6\webroot by default. And this is a folder which holds files and data for all applications and users (all IMatch users, in this case) and hence not suitable for per-user data. This is why IMatch stores per-user print templates and dictionaries in %APPDATA% and not in %PROGRAMDATA%.

I have added this in preparation of apps which may show up in a future IMatch version and which may allow (advanced) users to customize things to the hilt by providing HTML templates or custom style sheets. And now we can tell users to store this stuff in their user folder and access it easily via /appdatafolder/.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook