add autoUpload option