fix bug when process-bar show 100% but file not uploaded