We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
When using Show previous uploads feature with showPreview:true, the scrips shows preview for all files even not image files.
The text was updated successfully, but these errors were encountered:
which browser ?
Sorry, something went wrong.
I tested it on Chrome Version 61.0.3163.100 (Official Build) (64-bit) and on Firefox 56.0 (64-bit) same thing
Here is the solution I made to solve the problem:
onLoad:function(obj) { $.ajax({ cache: false, url: "load.php", dataType: "json", success: function(data) { for(var i=0;i<data.length;i++) { obj.createProgress(data[i]["name"],data[i]["path"],data[i]["size"],data[i]["image"]); } } }); },
add
if (getimagesize($filePath)) {$details['image']=1;}
//This is for showing Old files to user. this.createProgress = function (filename,filepath,filesize,image) { var pd = new createProgressDiv(this, s); pd.progressDiv.show(); pd.progressbar.width('100%'); var fileNameStr = ""; if(s.showFileCounter) fileNameStr = obj.fileCounter + s.fileCounterStyle + filename; else fileNameStr = filename; if(s.showFileSize) fileNameStr += " ("+getSizeStr(filesize)+")"; pd.filename.html(fileNameStr); obj.fileCounter++; obj.selectedFiles++; if(s.showPreview && image) { pd.preview.attr('src',filepath); pd.preview.show(); }
Thank you. I will fix it.
No branches or pull requests
Hello,
When using Show previous uploads feature
with showPreview:true, the scrips shows preview for all files even not image files.
The text was updated successfully, but these errors were encountered: