Do not restrict import file types on Android since it just doesn't work :( ...
This commit is contained in:
1 parent
5640cf8755
commit
09e82600aa
1 file changed
+6
-1
@@ -38,6 +38,11 @@ const GpxImport: Component = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const accept =
|
||||||
|
window.Capacitor.platform === 'android'
|
||||||
|
? ''
|
||||||
|
: '.gpx,.jpg,image/jpeg,application/gpx+xml';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div class={css.container}>
|
<div class={css.container}>
|
||||||
@@ -48,7 +53,7 @@ const GpxImport: Component = () => {
|
|||||||
type='file'
|
type='file'
|
||||||
id='gpx-import'
|
id='gpx-import'
|
||||||
class={css.inputFile}
|
class={css.inputFile}
|
||||||
accept='.gpx, .jpg'
|
accept={accept}
|
||||||
multiple={true}
|
multiple={true}
|
||||||
onChange={onChangeHandler}
|
onChange={onChangeHandler}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in new issue
Block a user