disable the upload function