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 commit954ff36360
) (cherry picked from commitf6fe18a282
)
This commit is contained in:
parent
f943bff254
commit
d06fca0104
|
@ -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