Prevents cached validation results when re-uploading a file
This commit is contained in:
Родитель
72f5f26359
Коммит
fda89c1a3d
|
@ -763,7 +763,7 @@ function uploadFile(domFile, file, url) {
|
|||
|
||||
var token = $("#upload-file input[name=csrfmiddlewaretoken]").val();
|
||||
|
||||
xhr.open("POST", url, true);
|
||||
xhr.open("POST", format('{0}?_={1}', [url, (new Date).getTime()]), true);
|
||||
|
||||
xhr.onreadystatechange = onupload;
|
||||
xhr.setRequestHeader("Content-Type", "application/octet-stream");
|
||||
|
|
Загрузка…
Ссылка в новой задаче