HDFS-14692. Upload button should not encode complete url. Contributed by Lokesh Jain.
Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
This commit is contained in:
parent
8cef9f89f4
commit
954ff36360
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user