Updated put method for uploading