diff --git a/common/js/plugins/jquery.fileupload/js/main.js b/common/js/plugins/jquery.fileupload/js/main.js
index a0320ea9f..41613257e 100644
--- a/common/js/plugins/jquery.fileupload/js/main.js
+++ b/common/js/plugins/jquery.fileupload/js/main.js
@@ -184,6 +184,9 @@
if(result.original_type === 'image/gif') {
temp_code += '';
} else if (result.download_url.match(/\bprocFileDownload\b/)) {
+ if (result.download_url.match(/^\?/)) {
+ result.download_url = XE.URI(default_url).pathname() + result.download_url;
+ }
temp_code += '';
} else {
temp_code += '';
@@ -359,6 +362,9 @@
if(result.original_type === 'image/gif') {
temp_code += '';
} else if (result.download_url.match(/\bprocFileDownload\b/)) {
+ if (result.download_url.match(/^\?/)) {
+ result.download_url = XE.URI(default_url).pathname() + result.download_url;
+ }
temp_code += '';
} else {
temp_code += '';