bugfix: file name reset when uploading