corrected methods for upload