In Chromium access to file:// protocol is disabled by default.
This prevents WeBuilder plugins using the Chromium engine from accessing local files.
Would it be possible to enable the Chromium command line switch "--allow-file-access-from-files" in the next release?
Some reference links:
http://peter.sh/experiments/chromium-co ... from-files
http://www.magpcss.org/ceforum/viewtopi ... 14&t=10892
http://magpcss.org/ceforum/viewtopic.ph ... 73&start=0
Enable XHR access to file:// protocol in Chromium engine
Moderator: kfury77
Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
- Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
- Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
- Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Enable XHR access to file:// protocol in Chromium engine
There are 10 types of people in the world: Those who understand binary and those who don't.
Re: Enable XHR access to file:// protocol in Chromium engine
Hmm, what are you trying to achieve?
Blumentals Software Programmer
Re: Enable XHR access to file:// protocol in Chromium engine
What I wanted to do, was to implement an image optimizing function in my "Insert Base64 Image" plugin, by using an external optimizing program to process the uploaded image. And then read in the optimized file/data.
For security reasons XHR access to local files is disabled by default in browsers.
But since the Webkit engine in WeBuilder is not a "real browser", there's no need for that restriction.
Specially since it prevents working with files locally, which is needed in WeBuilder plugins. (That's also why the access restrictions doesn't apply to Chrome/Firefox extensions.)
Note: Could also be the "--allow-file-access" Chrome option. Im not quite sure which one enables it.
For security reasons XHR access to local files is disabled by default in browsers.
But since the Webkit engine in WeBuilder is not a "real browser", there's no need for that restriction.
Specially since it prevents working with files locally, which is needed in WeBuilder plugins. (That's also why the access restrictions doesn't apply to Chrome/Firefox extensions.)
Note: Could also be the "--allow-file-access" Chrome option. Im not quite sure which one enables it.
There are 10 types of people in the world: Those who understand binary and those who don't.
Re: Enable XHR access to file:// protocol in Chromium engine
Alright, I'll see what can be done, I think most likely only for the next major version, during chromium engine upgrade.
Blumentals Software Programmer
Re: Enable XHR access to file:// protocol in Chromium engine
No problem. I can wait..Aivars wrote:Alright, I'll see what can be done, I think most likely only for the next major version, during chromium engine upgrade.

There are 10 types of people in the world: Those who understand binary and those who don't.