How to delete file uploaded to sever after processing it in Django?

What I am trying to do is that when I upload an audio file which needs to be processed it gets stored in the server, but that file is not needed anymore after user leaves the website. How should I efficiently manage this in Django? Thankyou


处理完后请删除文件?

import os
os.remove(path_to_file)
链接地址: http://www.djcxy.com/p/42438.html

上一篇: 如何使用python脚本删除临时文件夹数据

下一篇: 如何删除在Django中处理后上传到服务器的文件?