fohrloop / dash-uploader

The alternative upload component for python Dash applications.
MIT License
141 stars 29 forks source link

Can't upload a video from iphone #86

Closed PandaGab closed 2 years ago

PandaGab commented 2 years ago

Hello !

When I use the dash-uploader component inside a Chrome browser on a IPhone I am not able to upload a video using 'Take Video' option provided by the IPhone.

It will simply return the following message inside the component: "Invalid file type!"

Any ideas how to fix this ?

Thank you very much :)

fohrloop commented 2 years ago

My only guess would be that the selected filetype is not in the list of accepted filetypes. This is controlled by the filetypes argument of du.Upload. So, instead of:

du.Upload(
    id="dash-uploader",
    filetypes=["csv", "xls", "xlsx"], # <-- remove this
    # .... rest
),

use

du.Upload(
    id="dash-uploader",
    # .... rest
),
PandaGab commented 2 years ago

You were right, this change has worked !

du.Upload(
    id="dash-uploader",
    filetypes=["mov"],
    # .... rest
)