Closed alexaung closed 1 year ago
Hello !
It's HTML here : https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept
Actually, I have tied it with. Still not working. If I use input tag, it is working.
<Controller control={control} name="employeeIdCard" render={({ field, fieldState }) => ( <MuiFileInput className="mt-32" {...field} label={t("EMPLOYEE_ID_CARD")} placeholder={t("EMPLOYEE_ID_CARD")} id="employeeIdCard" error={fieldState.invalid} helperText={fieldState.error ? fieldState.error.message : ""} variant="outlined" required fullWidth accept="image/png, image/jpeg" /> )} />
Sorry. My bad. it is working this way
inputProps={{ accept: "image/png, image/jpeg" }}
Describe the bug I only want to upload ".jpg, .jpeg, .png, .pdf"
But it is not filter. Is there a way?. I can't find it in document.