none
Single quote "'" Error while uploading a File in iOS RRS feed

  • Question

  • If the uploading file name contains a single quote in it like (filename = "This is your's file.pdf")

    Request URL

    <Sitename>/_api/web/getfolderbyserverrelativeurl('/folderName')/Files/add(url='This is your's file.pdf',overwrite=true)

    Error

    {"error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"The expression \"web/getfolderbyserverrelativeurl('/Shared Documents')/Files/add(url='This%20is%20your's%20file.pdf',overwrite=true)\" is not valid."}}}

    Please help as soon as possible.

    Friday, June 24, 2016 11:10 AM

Answers