fohrloop/dash-uploader

Can't upload a video from iphone

PandaGab opened this issue · 2 comments

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 :)

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
),

You were right, this change has worked !

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