HDFS-14692. Upload button should not encode complete url. Contributed by Lokesh Jain.

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
(cherry picked from commit 954ff36360)
(cherry picked from commit f6fe18a282)
This commit is contained in:
Lokesh Jain 2019-08-06 15:30:14 -07:00 committed by Wei-Chiu Chuang
parent f943bff254
commit d06fca0104
1 changed files with 1 additions and 2 deletions

View File

@ -442,8 +442,7 @@
for(var i = 0; i < $('#modal-upload-file-input').prop('files').length; i++) {
(function() {
var file = $('#modal-upload-file-input').prop('files')[i];
var url = '/webhdfs/v1' + current_directory;
url = encode_path(append_path(url, file.name));
var url = '/webhdfs/v1' + encode_path(append_path(current_directory, file.name));
url += '?op=CREATE&noredirect=true';
files.push( { file: file } )
files[i].request = $.ajax({