Option to delete files when deleting files for downloading
- jameswadsworth
-
Topic Author
- Offline
Less
More
8 years 3 weeks ago #297620
by jameswadsworth
-- HikaShop version -- : 3.5.1
-- Joomla version -- : 3.8.11
In version 3.4.0 you introduced a new configuration option so that when an product image is deleted it can also be deleted from the upload folder.
Is it possible to implement an identical option for product download files?
-- Joomla version -- : 3.8.11
In version 3.4.0 you introduced a new configuration option so that when an product image is deleted it can also be deleted from the upload folder.
Is it possible to implement an identical option for product download files?
Please Log in or Create an account to join the conversation.
8 years 3 weeks ago #297621
by nicolas
Replied by nicolas on topic Option to delete files when deleting files for downloading
Hi,
That same option already affects the files of the products the same way it affects the images.
So what you're talking about should already be there.
Moreover, the delete function for the files and the images uses the exact same function called deleteFiles in the file administrator/components/com_hikashop/classes/file.php
So since it already works for the images, I don't see why it wouldn't work for the files.
Note that I'm talking about the files that you can upload in the "Images & file" area of the products. This doesn't apply for images and files uploaded through custom fields.
That same option already affects the files of the products the same way it affects the images.
So what you're talking about should already be there.
Moreover, the delete function for the files and the images uses the exact same function called deleteFiles in the file administrator/components/com_hikashop/classes/file.php
So since it already works for the images, I don't see why it wouldn't work for the files.
Note that I'm talking about the files that you can upload in the "Images & file" area of the products. This doesn't apply for images and files uploaded through custom fields.
The following user(s) said Thank You: jameswadsworth
Please Log in or Create an account to join the conversation.
- jameswadsworth
-
Topic Author
- Offline
8 years 3 weeks ago #297757
by jameswadsworth
Replied by jameswadsworth on topic Option to delete files when deleting files for downloading
Hi Nicolas,
it was not clear that it worked too for files as the configuration is under images and also the entry in the change log did not explicitly state files.
All clear now though. Thanks
it was not clear that it worked too for files as the configuration is under images and also the entry in the change log did not explicitly state files.
All clear now though. Thanks
Please Log in or Create an account to join the conversation.
8 years 3 weeks ago #297770
by nicolas
Replied by nicolas on topic Option to delete files when deleting files for downloading
Hi,
Yes, at first, it wasn't meant for the files as well as it's less of a problem than images. The fact that it also works for the files is a by product of the modification because both files and images uses the same code.
I found out about it when checking the code in order to answer you
Yes, at first, it wasn't meant for the files as well as it's less of a problem than images. The fact that it also works for the files is a by product of the modification because both files and images uses the same code.
I found out about it when checking the code in order to answer you
Please Log in or Create an account to join the conversation.
Time to create page: 0.221 seconds