Commit 648ba6ef authored by Guillaume Perréal's avatar Guillaume Perréal

Désactive la vérification du type MIME côté client.

Cela dépend trop de la configuration du navigateur.
parent 31bdc1b0
......@@ -97,6 +97,9 @@ class FileUploadType extends AbstractType
*/
public function buildView(FormView $view, FormInterface $form, array $options)
{
// Désactive la vérification du type MIME côté client, car elle n'est pas assez fiable.
unset($options['accept_file_types']);
$this->buildWidgetView($view, $form, $options);
$view->vars['widget_attr']['data-create-url'] = $this->router->generate('file_upload_create');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment