diff --git a/Resources/views/Form/file_upload.html.twig b/Resources/views/Form/file_upload.html.twig
index 1cfa93017f12bf4555301b47aeb6628e848aa3f4..6e618d3d23df19063d0b4d47dd9192313d2bf1a4 100644
--- a/Resources/views/Form/file_upload.html.twig
+++ b/Resources/views/Form/file_upload.html.twig
@@ -9,7 +9,7 @@
             {{- irstea_icon('remove') -}}
         </a>
         <div class="progress" style="display: none">
-            <div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" style="width: 0%"></div>
+            <div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" style="width: 0"></div>
         </div>
     </div>
 {% endblock %}
@@ -21,7 +21,9 @@
         <span class="repr">{{ irstea_uploaded_file(file) }}</span>
         <input class="form-control description" type="text" placeholder="{% trans from 'file_upload' %}form.description.placeholder{% endtrans %}" name="{{ full_name }}{% if multiple %}[{{index|default('__index__')}}]{% endif %}[description]" value="{{ file.description|default }}"/>
         <span class="error"></span>
-        <a href="#" class="danger delete {%- if disabled or read_only %} disabled{% endif -%}" title="{% trans %}button.delete{% endtrans %}">
+        <a href="#" class="danger delete {%- if disabled or attr.readonly|default(false) %} disabled{% endif -%}" title="{%
+        trans %}button.delete{%
+        endtrans %}">
             {{- irstea_icon('remove') -}}
         </a>
     </div>
@@ -33,7 +35,7 @@
          data-upload-prototype="{{ block('file_upload_progress_prototype')|e }}"
          data-csrf-token="{{ csrf_token(constant('Irstea\\FileUploadBundle\\Controller\\UploadController::CSRF_INTENTION')) }}"
          {% if disabled %}data-disabled="disabled"{% endif -%}
-         {% if read_only %}data-readonly="readonly"{% endif -%}
+         {% if attr.readonly|default(false) %}data-readonly="readonly"{% endif -%}
          >
         <div class="fileinput-entries">
             {%- if value is not empty %}
@@ -51,7 +53,7 @@
             <span>{{ irstea_icon('upload') }}&nbsp;{% trans %}button.upload{% endtrans %}</span>
             <input type="file" name="_hack_{{ full_name }}" data-map-errors-to="#{{ id }}"
                 {%- if multiple %} multiple="multiple"{% endif -%}
-                {%- if disabled or read_only %} disabled="disabled"{% endif -%}
+                {%- if disabled or attr.readonly|default(false) %} disabled="disabled"{% endif -%}
             />
         </div>
         {% if multiple and widget_attr["data-max-number-of-files"] is defined %}