removed an unused method in upload controller