You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Galsza (via GitHub)" <gi...@apache.org> on 2024/09/23 19:10:30 UTC
Re: [PR] HDFS-17040. Namenode web UI should set content type to application/octet-stream when uploading a file. [hadoop]
Galsza commented on code in PR #5721:
URL: https://github.com/apache/hadoop/pull/5721#discussion_r1771950619
##########
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'
Review Comment:
@szetszwo I'm not sure the CORS problem still exists. I've tested this using Chrome browser and with maximum security enabled the change was still working.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org