pnp / pnpjs

Fluent JavaScript API for SharePoint and Microsoft Graph REST APIs
https://pnp.github.io/pnpjs/
Other
749 stars 305 forks source link

EnsureUniqueFileName when using addChunked #2926

Closed mdissel closed 6 months ago

mdissel commented 7 months ago

Target environment

None

Additional environment details

No response

Enhancement Idea

No response

mdissel commented 7 months ago

See closed issue #2858. Please reopen!

mdissel commented 7 months ago

I added this workaround in my code.

const response = await web.getFolderByServerRelativePath(targetPath).files.addUsingPath(file.file.name, null, parameters); await web.getFolderByServerRelativePath(targetPath).files.addChunked(response.data.Name, file.file, .... , true)

patrick-rodgers commented 6 months ago

We have updated v4 to use addUsingPath within addChunked. We're going to leave v3 as-is and make the potentially breaking change in v4.

github-actions[bot] commented 6 months ago

This issue is locked for inactivity or age. If you have a related issue please open a new issue and reference this one. Closed issues are not tracked.