Thinkphp uploads an image of a product Using AJAX to prevent the upload of the product from being canceled. Then, the image is saved in a zero-time table, I want to create a hook to automatically delete temporary images when the SESSION ends. What should I do? Where to put the hook and where to put the code. thinkPHP version 3.2.2 uses AJAX to upload the image of the product, to prevent canceling the upload of the product in the middle, then the image is saved in a zero-time table. I want to create a hook to automatically delete the temporary image when the SESSION ends. What should I do?
Where to put the hook,
Where should the code be stored,
ThinkPHP version 3.2.2
Reply content:
Thinkphp uploads an image of a product Using AJAX to prevent the upload of the product from being canceled. Then, the image is saved in a zero-time table, I want to create a hook to automatically delete temporary images when the SESSION ends. What should I do?
Where to put the hook,
Where should the code be stored,
ThinkPHP version 3.2.2
Can you change your mind ~
The time when an image is generated in a temporary table ~
Then, use crontab to clear the image of the previous day ~