You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm writing new plugin with a custom tag, I ran into a problem that a argument of type 'file' passed as a parameter of disablePreview(args) (also affects liveDisplayName) contains escaped Windows path (all file separators are trimmed).
Example:
Real path: C:\Users\Roman.Komarevtsev\test.json
Passed value (args[0].value): C:UsersRoman.Komarevtsevtest.json
Meanwhile, async run(context, ...args) receive a correct path, which can be consumed by fs.readFileSync(...).
I'd like to get a real path in a disablePreview or liveDisplayName because for my tag logic I need to construct well-formed instance of URL.
Expected Behavior
Actual Behavior
Reproduction Steps
No response
Is there an existing issue for this?
Additional Information
When I'm writing new plugin with a custom tag, I ran into a problem that a argument of type 'file' passed as a parameter of
disablePreview(args)
(also affectsliveDisplayName
) contains escaped Windows path (all file separators are trimmed).Example:
Real path:
C:\Users\Roman.Komarevtsev\test.json
Passed value (
args[0].value
):C:UsersRoman.Komarevtsevtest.json
Meanwhile,
async run(context, ...args)
receive a correct path, which can be consumed byfs.readFileSync(...)
.I'd like to get a real path in a
disablePreview
orliveDisplayName
because for my tag logic I need to construct well-formed instance ofURL
.Full example available here: https://gist.github.com/iRomul/06a2080e4dd8c0f2dd7b8a4a6e67c871
Insomnia Version
8.6.1
What operating system are you using?
Windows
Operating System Version
Windows 10 Enterprise LTSC 21H2 19044.3930
Installation method
Windows installer from insomnia.rest
Last Known Working Insomnia version
No response
The text was updated successfully, but these errors were encountered: