fixed typo & temp files delete in upload module