Prevents cached validation results when re-uploading a file

This commit is contained in:
Kumar McMillan 2011-01-21 11:35:42 -06:00
Родитель 72f5f26359
Коммит fda89c1a3d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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");