Bug fix in uploadfile module