We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e8a7f9 commit ce747e1Copy full SHA for ce747e1
src/App.vue
@@ -37,7 +37,7 @@ import ESPTool from '@/esptool';
37
import type { IState } from '@/types/state';
38
import type { IESPDevice, IFlashProgress } from '@/esptool';
39
40
-const ACCEPT_EXTS = ['.zip', '.bin'];
+const ACCEPT_EXTS = ['.zip', '.bin', '.uf2'];
41
42
const MAX_FILE_SIZE = 16 * 1024 * 1024;
43
@@ -86,7 +86,7 @@ async function handleFile(file: File): Promise<void> {
86
const name = file.name.toLocaleLowerCase();
87
if (name.endsWith('.zip')) {
88
state.flashArgs = await readZip(file);
89
- } else if (name.endsWith('.bin')) {
+ } else if (name.endsWith('.uf2') || name == 'uf2.bin') {
90
state.flashArgs = await readUf2(file);
91
}
92
0 commit comments