113 questions
0 votes
1 answer
489 views
Using the 'integrity' attribute for script tags while avoiding CORS errors over the file-uri protocol
I want to build a lightweight single-page app that people can use locally over the file:// protocol (i.e. simply by downloading the project archive file, unpacking it and double clicking on index.html)...
-3 votes
2 answers
151 views
React blank page on build [duplicate]
I've been learning React (kind of new to it) and I'm working on a project and I did an npm create vite@latest. So far everything works fine when I do run dev. However when I do run build, then go to ...
0 votes
0 answers
367 views
Is it possible to use env variables into a local file URI protocol?
Knowing that we have the file URI protocol to reference local files in a browser bookmark as this question ( Meaning of '///' after 'file:' protocol (URL) ) already explains... What if ...
0 votes
1 answer
53 views
Gathering scattered information and files into one page
We have different people joined to different projects. Many of those can be concurrently joined to more than one projects. In each project can be assigned some information in different ways. Could be ...
7 votes
2 answers
5k views
How to use pnpm workspace protocol and deploy Firebase functions?
I have a pnpm monorepo and I use the workspace: protocol to add my shared folder as a local package. The workspace: protocol is not recognized by Firebase when deploying functions and I have the ...
1 vote
1 answer
2k views
camera.getPicture() returns an unexpected FILE_URI on Android
using the plugin i'm trying to take photo in my app trough the camera.getPicture() method. Here is the code: navigator.camera.getPicture(onSuccess, onFail, { quality: 50, destinationType: ...
7 votes
2 answers
2k views
MediaDevices.enumerateDevices() is not showing all the media devices when accessing via file protocol?
My index.html to list all media devices is <!DOCTYPE html> <html> <body> <script> (async () => { await navigator.mediaDevices.getUserMedia({ audio: ...
0 votes
2 answers
2k views
is it actually possible to use hostname other than local host?
Complete syntax: file://host/path If the host is localhost: it can be omitted and then resulting syntax is file:///path. Is it actually possible to use hostnames other than localhost ? and In what ...
1 vote
0 answers
973 views
Android - Get absolute file path from uri, picked from Downloads
I am trying to get the absolute file path from the uri. But can't get it for the files downloaded with some download manager. For example, I have downloaded an audio and stored it in /storage/emulated/...
0 votes
1 answer
322 views
Exporting Canvas with toDataURL on a file:/// element causes taint error even on local resource
I have a local HTML page, which is loaded from harddrive (inside a Android WebView) with file:// protocol. (folder: WirelessBarcodeScanner/Custom Forms/bctest.html) Loading in a with a local file:// (...
0 votes
1 answer
810 views
How to add a relative file path inside a pdf using pypdf
Context I have a pdf with links. I want to replace all the external links with local files in the same folder. Is there a way to do that in pypdf or python e.g. outputStream = open("destination....
1 vote
1 answer
355 views
How to load local file via iframe inside html file in wkwebview?
I am migrating UIWebView to WKWebview. While I could manage to migrate most of the workflows. I am stuck at one workflow that I am not able to load the local file ("file://") via iframe from ...
6 votes
0 answers
403 views
How to use #/fragment identifier with file:// URI/URL protocol
I'm trying to open local html files at specific anchors by using the #fragment identifiers, this unfortunately seems to be stripped by the file handler. For example running cmd.exe /c rundll32 url....
2 votes
0 answers
872 views
How to get file path from fileurl in qt android
I am working on qt 5.14.1 with ndk version 21 and sdk version 28. I want to open a kml file using file dialog in qt android. I get a fileurl from file dialog like this, content://com.android....
1 vote
0 answers
710 views
Not able to send files to QnA Maker using "bf qnamaker:kb:update" command
I'm trying to update QnA Maker knowledge base via script using: bf qnamaker:kb:update --subscriptionKey=xxx --kbId=xxx --wait --in=UpdateKbOperationDTO.json where UpdateKbOperationDTO.json is a file ...