AbanteCart Community

eCommerce construction => General Discussion => Topic started by: walkietalkie on December 28, 2023, 08:59:54 AM

Title: ****** please
Post by: walkietalkie on December 28, 2023, 08:59:54 AM
Hello all you good people,

I have started to use this platform today. I am not an expert, but have used a couple of other platforms. I am trying to upload images to use in my store, however it just keeps coming up with "File Michael Ashby.jpg (Filetype not allowed)" I have tried .png and .jpeg and in different sizes. just will not allow me to upload any images. Can someone say what the problem is please?

Regards
Mike
Title: Re: ****** please
Post by: Basara on December 28, 2023, 09:17:13 AM
Hello.
Please upload image somewhere and share it with us.
Make sure jpg and png in the allowed types https://abantecart.atlassian.net/wiki/spaces/AD/pages/24281122/Add+new+resource+type
Title: Re: ****** please
Post by: GiddsMaster on May 04, 2024, 11:10:00 AM
Hi,

I have an issue where the filetype extension /.+(jpe?g|gif|png|ico|svg|svgz|webp|avif)$/i is changed with /.(jpe?g|gif|png|ico|svg|svgz|webp|avif)$/i without the + .
Everytime I fix it and check it again it does not show the plus sign and I keep getting filetype error when loading jpeg images.
Title: Re: ****** please
Post by: Basara on May 06, 2024, 02:57:10 AM
Quote from: GiddsMaster on May 04, 2024, 11:10:00 AM
Hi,

I have an issue where the filetype extension /.+(jpe?g|gif|png|ico|svg|svgz|webp|avif)$/i is changed with /.(jpe?g|gif|png|ico|svg|svgz|webp|avif)$/i without the + .
Everytime I fix it and check it again it does not show the plus sign and I keep getting filetype error when loading jpeg images.

Hello. You can try to update directly in the database in the resource_types table
UPDATE `abc_resource_types` SET `file_types` = '/.+(jpe?g|gif|png|ico|svg|svgz|webp|avif)$/i' WHERE `abc_resource_types`.`type_id` = 1;