jimmywarting / native-file-system-adapter

File system, based on the spec reference implementation

Home Page:https://jimmywarting.github.io/native-file-system-adapter/example/test.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug?: showSaveFilePicker does not works in firefox

creatxrgithub opened this issue · comments

import { showDirectoryPicker, showOpenFilePicker, showSaveFilePicker } from 'native-file-system-adapter';

showDirectoryPicker and showOpenFilePicker work in firefox.

but showSaveFilePicker does not work in firefox. it cannot show the popup dialogue.

it works with chromium, opera etc.

saveFile: async() => {
	const fileHandle = await showSaveFilePicker({
		_preferPolyfill: false,
		suggestedName: 'Untitled',
		excludeAcceptAllOption: false // default
		});
		console.log(fileHandle);  //it could print to console.
	}

test env: ionic + vue