Bugfix: tmp files not being removed after upload.