Fixed bug of file uploading