Debugged file and entry deletion functionality, and fixed a bug in which duplicate files would not be uploaded