Skip to content
Snippets Groups Projects
Commit f70dad3d authored by Alex ORLUC's avatar Alex ORLUC
Browse files

fix extension

parent 5187fa27
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ export class CustomizationComponent implements OnInit {
uploadTrigger(fileInput: any, mode: string) {
if (fileInput.target.files && fileInput.target.files[0] && !this.readonlyState) {
const allowedExtension = mode !== 'logo' ? ['image/jpg'] : ['image/svg+xml'];
const allowedExtension = mode !== 'logo' ? ['image/jpg', 'image/jpeg'] : ['image/svg+xml'];
if (allowedExtension.indexOf(fileInput.target.files[0].type) !== -1) {
const reader = new FileReader();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment