create class for upload controller