Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

chunked content-type #65

Closed
DomrachevIvan opened this Issue · 2 comments

2 participants

@DomrachevIvan

chunked загрузка
server: nginx+upload module (v 2.2.0)

client: ff 18.0.2 и chrome 24:
клиент не передаёт content-type. сервер на чанки пишет в логи: ...missing Content-Type header,....

но я не могу поставить всем
file.xhr=FileAPI.upload({
....
headers: { 'Content-Type': 'application/octet-stream',
....

т.к. тогда отвалятся те бровсеры которые отправляют без чанков.
вероятно надо
--- FileAPI.XHR.js.original 2013-02-12 10:52:16.000000000 +0400
+++ FileAPI.XHR.js 2013-02-12 10:51:23.000000000 +0400
@@ -204,6 +204,7 @@

                                    xhr.setRequestHeader("Content-Range", "bytes " + data.start + "-" + data.end + "/" + data.size);
                                    xhr.setRequestHeader("Content-Disposition", 'attachment; filename=' + encodeURIComponent(data.name));
  •                                   xhr.setRequestHeader("Content-Type", "application/octet-stream");
    
                                    slice = data.file[slice](data.start, data.end + 1);
    
@RubaXa
Owner

Сделано, пока в dev ветке:

@DomrachevIvan

спасибо. эта часть заработала.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.