Error viewer PDF base64

208 views
Skip to first unread message

Paolo

unread,
Aug 8, 2018, 11:18:12 AM8/8/18
to PHP Desktop
Hi,
I use phpdesktop for open a dashboard with various link.
One of these links opens a pdf but returns an error:

GET data:application/pdf;base64,{{ctrl.htmlcode}} net::ERR_INVALID_URL
Failed to clear temp storage: It was determined that certain files are unsafe for access within a Web application, or that too many calls are being made on file resources. SecurityError


can I do something to solve?

Thanks

Czarek Tomczak

unread,
Aug 8, 2018, 11:59:43 AM8/8/18
to PHP Desktop
What PHP Desktop version?

Have you tried Google to search for "Failed to clear temp storage" error?
https://www.google.com/search?q=%22Failed+to+clear+temp+storage%22

I guess you try to load content from different origins and that is a security issue, see:
1. https://www.google.com/search?q=%22data%3Aapplication%2Fpdf%3Bbase64%22
2. https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#faq-xhr

Czarek Tomczak

unread,
Aug 8, 2018, 12:01:39 PM8/8/18
to PHP Desktop
To disable web security set "disable-web-security: "", see:
https://github.com/cztomczak/phpdesktop/wiki/Chrome-settings#command_line_switches

Paolo

unread,
Aug 8, 2018, 12:21:18 PM8/8/18
to PHP Desktop
version 57.0

Paolo

unread,
Aug 8, 2018, 12:32:14 PM8/8/18
to PHP Desktop
I just tried to disable ... nothing done
:-(

Paolo

unread,
Mar 1, 2019, 11:44:19 AM3/1/19
to PHP Desktop
Hi Czarek.
I tried with the older version (47.5) and it works well.


The problem:

Czarek Tomczak

unread,
Mar 1, 2019, 1:37:02 PM3/1/19
to PHP Desktop
Both v57 and v47 are quite old. It may be resolved in latest Chrome, but phpdesktop for Windows wasn't yet updated. Check developer tools console for additional errors. Another solution is to not use the "data:" protocol.
Reply all
Reply to author
Forward
0 new messages