Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downloading local file #70

Closed
kirkegaard opened this issue Oct 3, 2018 · 1 comment
Closed

Downloading local file #70

kirkegaard opened this issue Oct 3, 2018 · 1 comment

Comments

@kirkegaard
Copy link

Im downloading a bunch of files, and doing some processing on those. Then creating a zip file and sending that to the user. The zipfile is located in getPath('temp') but the content of the file is:

Failed to compile /var/folders/pl/cgw8lyrn03d50cb8c7npxqxr0000gn/T/MYZIPFILE.ZIP: Asked for /var/folders/pl/cgw8lyrn03d50cb8c7npxqxr0000gn/T/MYZIPFILE.ZIP but it was not precompiled!
Error: Asked for /var/folders/pl/cgw8lyrn03d50cb8c7npxqxr0000gn/T/MYZIPFILE.ZIP but it was not precompiled!
    at FileChangedCache.getCacheEntryForPath (/Users/MYUSERNAME/Development/jpd/out/MYAPPNAME-darwin-x64/MYAPPNAME.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:218:15)
    at /Users/MYUSERNAME/Development/jpd/out/MYAPPNAME-darwin-x64/MYAPPNAME.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:127:41
    at Generator.next (<anonymous>)
    at step (/Users/MYUSERNAME/Development/jpd/out/MYAPPNAME-darwin-x64/MYAPPNAME.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:27:191)
    at /Users/MYUSERNAME/Development/jpd/out/MYAPPNAME-darwin-x64/MYAPPNAME.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:27:437
    at new Promise (<anonymous>)
    at /Users/MYUSERNAME/Development/jpd/out/MYAPPNAME-darwin-x64/MYAPPNAME.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:27:99
    at FileChangedCache.getHashForPath (/Users/MYUSERNAME/Development/jpd/out/MYAPPNAME-darwin-x64/MYAPPNAME.app/Contents/Resources/app/node_modules/electron-compile/lib/file-change-cache.js:177:7)
    at /Users/MYUSERNAME/Development/jpd/out/MYAPPNAME-darwin-x64/MYAPPNAME.app/Contents/Resources/app/node_modules/electron-compile/lib/compiler-host.js:298:51
    at Generator.next (<anonymous>)

From what i could find, this happens because of a security measure not allowing access to files that isnt a part of the app it self. Is there any workaround for this issue, or should i handle local files a different way?

@pierreugo
Copy link

Hello

Did you find a solution for this issue ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants