Upload new version with new name
Hi, I'm using the box-javascript-sdk to upload files and versions. I want to be able to change the file name when uploading a new version of the file.
This is what I have right now, but the name doesn't get updated. How can I change the name upon new version upload??
let formData = new FormData(); const fileName = 'newName'; formData.append(file.name, file); formData.append('parent_id', boxFolderId); formData.append('fileId', contentId); formData.append('name', fileName); this.props.boxClient.files.uploadNewFileVersion({ body: formData })
サインインしてコメントを残してください。
コメント
0件のコメント