Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/ecom1.picotech.app/public_html_ecom1/public/dist/js/custom/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
if ($('.main-body .page-wrapper').find('#brand-add-container').length ||$('.main-body .page-wrapper').find('#brand-edit-container').length) {
$("#validatedCustomFile").on('change', function() {
//get uploaded filename
var files = [];
for (var i = 0; i < $(this)[0].files.length; i++) {
files.push($(this)[0].files[i].name);
}
$(this).next('.custom-file-label').html(files.join(', '));
//image validation
var file = this.files[0];
var fileType = file["type"];
var validImageTypes = ["image/jpg", "image/jpeg", "image/png"];
if ($.inArray(fileType, validImageTypes) < 0) {
$('#divNote').show();
$('#note_txt_1').hide();
$('#note_txt_2').html('<h6> <span class="text-danger font-weight-bolder">' +jsLang('Invalid file extension') + '</span> </h6> <span class="badge badge-danger">' + jsLang('Note') + '!</span> ' + jsLang('Allowed File Extensions: jpg, png, gif, bmp'));
$('#note_txt_2').show();
return false;
} else {
$('#note_txt_2, #note_txt_1').hide();
return true;
}
});
}
if ($('.main-body .page-wrapper').find('#brand-list-container').length) {
// For export csv
$(document).on("click", "#csv, #pdf", function(event) {
event.preventDefault();
window.location = SITE_URL + "/brands/" + this.id;
});
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.003 ]-- |