fix bug: upload a file which already existed return a wrong file size.