HDFS-17040. Namenode web UI should set content type to application/octet-stream when uploading a file. (#5721)
This commit is contained in:
parent
37a74f0692
commit
68315744f0
@ -518,7 +518,8 @@
|
|||||||
url: url,
|
url: url,
|
||||||
data: file.file,
|
data: file.file,
|
||||||
processData: false,
|
processData: false,
|
||||||
crossDomain: true
|
crossDomain: true,
|
||||||
|
contentType: 'application/octet-stream'
|
||||||
}).always(function(data) {
|
}).always(function(data) {
|
||||||
numCompleted++;
|
numCompleted++;
|
||||||
if(numCompleted == files.length) {
|
if(numCompleted == files.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user