Do not restrict import file types on Android since it just doesn't work :( ...

This commit is contained in:
Eric van der Vlist 2023-04-15 17:29:09 +02:00
parent 5640cf8755
commit 09e82600aa
1 changed files with 6 additions and 1 deletions

View File

@ -38,6 +38,11 @@ const GpxImport: Component = () => {
}
};
const accept =
window.Capacitor.platform === 'android'
? ''
: '.gpx,.jpg,image/jpeg,application/gpx+xml';
return (
<>
<div class={css.container}>
@ -48,7 +53,7 @@ const GpxImport: Component = () => {
type='file'
id='gpx-import'
class={css.inputFile}
accept='.gpx, .jpg'
accept={accept}
multiple={true}
onChange={onChangeHandler}
/>