fix: handle deleted files during uploads