mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
Laravel Vapor - Debug uploading issue
This commit is contained in:
@@ -97,16 +97,11 @@
|
||||
|
||||
vm.isLoading = true;
|
||||
|
||||
const pdfIconUrl = "https://assets.izyim.com/public/images/icons/pdf.png";
|
||||
const xlsIconUrl = "https://assets.izyim.com/public/images/icons/xlsx.png";
|
||||
|
||||
if(file.name.split('.').pop() === 'pdf'){
|
||||
// $(file.previewElement).closest("img[data-dz-thumbnail]").attr("src", asset("images/icons/pdf.png"));
|
||||
$(file.previewElement).closest("img[data-dz-thumbnail]").attr("src", pdfIconUrl);
|
||||
$(file.previewElement).closest("img[data-dz-thumbnail]").attr("src", asset("images/icons/pdf.png"));
|
||||
}
|
||||
if(file.name.split('.').pop().indexOf("xls") !== -1){
|
||||
// $(file.previewElement).closest("img[data-dz-thumbnail]").attr("src", asset("images/icons/xlsx.png"));
|
||||
$(file.previewElement).closest("img[data-dz-thumbnail]").attr("src", xlsIconUrl);
|
||||
$(file.previewElement).closest("img[data-dz-thumbnail]").attr("src", asset("images/icons/xlsx.png"));
|
||||
}
|
||||
|
||||
Promise.all(dropzone.files.map(function(file){
|
||||
|
||||
Reference in New Issue
Block a user