Hi,
is there a way to have the customers uploaded files deleted from the server when the order is deleted? We are using the upload attribute but i can see a problem with the files bulding up on the server.
Thanks Zen gurus!
Hi,
is there a way to have the customers uploaded files deleted from the server when the order is deleted? We are using the upload attribute but i can see a problem with the files bulding up on the server.
Thanks Zen gurus!
As you must download these files to fulfill the order, you have them locally
I would save them locally for XX period, but once downloaded they can be removed from the server
Maybe at the same time as when you download them
Zen-Venom Get Bitten
Thanks,
I am using the mod - "Customer Uploaded Files - List and Download" which lets admin download the file from a link without them needing to use FTP. So i am trying to avoid admin needing to use FTP to delete the images as well. If the order image(s) could be deleted when the order is deleted would solve this problem.
Cheers.
If that feature is not builtin to the module, one would have to custom code it to do soI am using the mod - "Customer Uploaded Files
Zen-Venom Get Bitten
Thats not built into the module but the image upload is part of zencart.
An uploaded image is linked to an order so there must be a way to have the linked image deleted when the order is deleted?
Yes but as not yest a feature it will require custom code it to do soAn uploaded image is linked to an order so there must be a way to have the linked image deleted when the order is deleted?
Zen-Venom Get Bitten
Any idea where the delete an order code is? Or where the cusstom code would need to go?
It would likely be called by /admin/orders.php, since that's the name of the file you see in your browser when the delete button is presented to you.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.