-- HikaShop version -- : 4.5.1
-- Joomla version -- : 4.1.3
-- PHP version -- : 7.4.29
Hi,
When using a custom product field type "Ajax Image", it's great that now an upload folder can be specified. But there are some issues, or at least shortcomings. I haven't tried much more but suspect it's very similar or even the same with "Ajax File" as well.
1. The (image) file is not being deleted if the image gets deleted in the backend product edit form. Also not tried, but I suspect it's the same if the product were deleted?
In case it matters, in the main config "Keep images after delete" is set to "no".
2. For Ajax Image there are no options for scaling/thumbnailing (although a subfolder "thumbnails" is being created in the specified upload folder), and the main config settings for images are not taken into account. Would be nice to have those options, or if at least the "general" image settings were applied here, too.
3. The Ajax Image field limitations for maximum filesize/dimensions are generally nice, but they won't replace missing scaling/thumbnailing options.
Actually, currently those limitations are only causing frustration for shop admins:
First, there's no hint on these limits for the field in the product edit form, but having this when limits are set would sure be helpful to start with.
Then, when size or dimension limits are exceeded, there's only a generic "Error saving" in the product add/edit form, but no further explanation at all.
Add'l frustration for a server admin: the images end up in full size in the upload folder anyway, even if they succeeded any limit, and again, they're never deleted by the system.
All of this is resulting in plenty of "trial & error" for admins, and eventually tons of files in the upload folder, particularly as uploading an image within limits but with the same name only stores a new, add'l version of the file.
So, with all respect, I dare saying there's some room for improvement at least for Ajax Image, and probably for Ajax File as well, and I hope you agree.
Thanks for looking into it!