Do not restrict import file types on Android since it just doesn't work :( ...
This commit is contained in:
parent
5640cf8755
commit
09e82600aa
|
@ -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}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue