diff --git a/src/components/import/Import.tsx b/src/components/import/Import.tsx index b598dfb..2958bc3 100644 --- a/src/components/import/Import.tsx +++ b/src/components/import/Import.tsx @@ -38,6 +38,11 @@ const GpxImport: Component = () => { } }; + const accept = + window.Capacitor.platform === 'android' + ? '' + : '.gpx,.jpg,image/jpeg,application/gpx+xml'; + return ( <>
@@ -48,7 +53,7 @@ const GpxImport: Component = () => { type='file' id='gpx-import' class={css.inputFile} - accept='.gpx, .jpg' + accept={accept} multiple={true} onChange={onChangeHandler} />