From 68315744f06b7827cad72337d2e0c97338242009 Mon Sep 17 00:00:00 2001 From: Attila Magyar Date: Mon, 23 Sep 2024 21:21:38 +0200 Subject: [PATCH] HDFS-17040. Namenode web UI should set content type to application/octet-stream when uploading a file. (#5721) --- .../hadoop-hdfs/src/main/webapps/hdfs/explorer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js index ea8b0accbde6c..b005f22de7a78 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/explorer.js +++ b/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) {