repaired upload files bug