Can I access the local file system from a Chrome application?

I am trying to write a simple media player as a package with a chrome package, and for this I need to access any folder from the file system directly from the application.

pseudo code

chrome.runtime.getFolderContents( 'c:/my_music', function(contents){ // Do something }); 

Is it possible? And if so, how? The search did not give me a clear "can not" so ... Can I?

+4
source share
1 answer

The Media Gallery API offers "access to media files (images, video, audio) from the user's local drives (with the consent of the user)."

It is best suited for your application, as it asks the user enough permission to do what you want, and no more.

+4
source

Source: https://habr.com/ru/post/1498706/


All Articles