We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 927c7b1 + 11b144c commit facf0ecCopy full SHA for facf0ec
1 file changed
Resources/public/js/largefile.js
@@ -115,7 +115,10 @@ var LargeFile = (function() {
115
var container = document.getElementById(
116
inputField.getAttribute('data-previewcontainer')
117
);
118
- container.src = '/' + url;
+ if (url.substring(0,1) !== '/') {
119
+ url = '/' + url;
120
+ }
121
+ container.src = url;
122
123
if (container.load) {
124
container.load();
0 commit comments