亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

php - How to clear the uploaded junk files when uploading files asynchronously?
迷茫
迷茫 2017-05-16 12:59:10
0
3
693

How to clear the uploaded junk files when uploading files asynchronously?
How are the junk images uploaded by segmentfault processed? Can you tell us?

迷茫
迷茫

業(yè)精于勤,荒于嬉;行成于思,毀于隨。

reply all(3)
伊謝爾倫

Name the file with the article/topic as the prefix. Determine which pictures are used in the current article/topic, and then clean up other discarded pictures regularly. If there is enough space, keep them there~~~

Peter_Zhu

The image is uploaded to a temporary folder and moved to the correct folder after the operation is successful. Just clean the temporary folder regularly and write a scheduled task

給我你的懷抱

The steps are as follows,
1 It is recommended to store the uploaded file in the form of /path/to/category/2017/08/09/xxx.ext;
2 Then every time the operation is successful and the correct form is submitted, the corresponding file should be The attachment path and time information are recorded in the attachment table;
3 Next, we can use SQL statements to clean up junk files that are not in the attachment table every day.
No thanks.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template