debug the upload controller