Wrong REST API example?
It seems like an error in rest api example. AddStubUsingPath method returns "Cannot handle the data at position 0" error, but AddUsingPath works fine.
Add Files
url: http://site url/_api/web/GetFolderByServerRelativePath(decodedUrl='folder name')/Files/AddStubUsingPath(decodedurl='testfile.txt')
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: e77701e1-868a-3768-b2ab-ce97ba41b408
- Version Independent ID: c18e9584-f323-926e-0cc2-7742d1a2736b
- Content: Supporting % and # in files and folders with the ResourcePath API
- Content Source: docs/solution-guidance/supporting-and-in-file-and-folder-with-the-resourcepath-api.md
- Product: sharepoint
- GitHub Login: @VesaJuvonen
- Microsoft Alias: vesaj
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Thank you for taking the time to file an issue. We periodically archive older or inactive issues as part of our issue management process, which automatically closes them once they are archived.
If you’d like to understand more about why and how we handle archived (closed) issues, please see Our approach to closed issues.
We appreciate your contribution and if this is still an active issue with the latest SPFx versions, please do resubmit the details. We needed to perform a cleanup, so that we can start with a clean table with a new process. We apologize for the inconvenience this might cause.