Commit 4c6b6293 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Compat IE.

Showing with 7 additions and 2 deletions
+7 -2
......@@ -66,7 +66,12 @@ class UploadController extends Controller
{
$data = $request->request->get('file');
$file = $this->fileManager->create($data['name'], $data['size'], $data['type'], $data['lastModified']);
$file = $this->fileManager->create(
$data['name'],
$data['size'],
$data['type'],
isset($data['lastModified']) ? $data['lastModified'] : null
);
$token = $this->csrfProvider->generateCsrfToken(self::CSRF_INTENTION);
......
......@@ -15,7 +15,7 @@
{% endblock %}
{% block file_upload_widget %}
<div id="{{ id }}" {{ block('widget_container_attributes') }} {{ block('widget_only_attributes') -}}
<div id="{{ id }}" {{ block('widget_container_attributes') }} {{ block('widget_only_attributes') }}
data-download-prototype="{{ block('file_upload_entry_prototype')|e }}"
data-upload-prototype="{{ block('file_upload_progress_prototype')|e }}"
{% if disabled %}data-disabled="disabled"{% endif -%}
......
Supports Markdown
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