Skip to content

Commit 6831574

Browse files
authored
HDFS-17040. Namenode web UI should set content type to application/octet-stream when uploading a file. (#5721)
1 parent 37a74f0 commit 6831574

File tree

1 file changed

+2
-1
lines changed
  • hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs

1 file changed

+2
-1
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,8 @@
518518
url: url,
519519
data: file.file,
520520
processData: false,
521-
crossDomain: true
521+
crossDomain: true,
522+
contentType: 'application/octet-stream'
522523
}).always(function(data) {
523524
numCompleted++;
524525
if(numCompleted == files.length) {

0 commit comments

Comments
 (0)