Browse Source

HDFS-17040. Namenode web UI should set content type to application/octet-stream when uploading a file. (#5721)

Attila Magyar 7 months ago
parent
commit
68315744f0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js

+ 2 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js

@@ -518,7 +518,8 @@
             url: url,
             data: file.file,
             processData: false,
-            crossDomain: true
+            crossDomain: true,
+            contentType: 'application/octet-stream'
           }).always(function(data) {
             numCompleted++;
             if(numCompleted == files.length) {