diff options
-rwxr-xr-x | fbin.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -237,6 +237,8 @@ class Application(object): tempfile.tempdir = settings.file_directory form = FileUploadFieldStorage(fp = environ['wsgi.input'], environ = environ) if environ['REQUEST_METHOD'] != 'POST' or not 'file' in form or not 'filename' in form: + if 'file' in form: + form['file'].file.delete = True start_response('200 OK', [('Content-Type', 'text/html')]) return str(templates.upload(searchList = {'root': settings.virtual_root, 'user': user})) |