API File upload bug

Just an FYI in case you come across the same thing.

I have found a bug that occurs when you try and send a file with the text of “Java” on the end of the file name.

If I send this filename I get the error you see below

https://legal.blah.com/blah/api/19/files/content?parentfolderid=44930&filename=Java.pdf

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>

<head>
    <title>403 Forbidden</title>
</head>

<body>
    <h1>Forbidden</h1>
    <p>You don't have permission to access this resource.</p>
</body>

</html>


If send this, then it works just fine

https://legal.blah.com/blah/api/19/files/content?parentfolderid=44930&filename=Java2.pdf

  • 0
    Thomson Reuters Thomson Reuters staff member

    Hello,

    Could you please share the product name? Also, share the full endpoint URL with actual domain.

    Thanks!

  • +1
    Thomson Reuters Thomson Reuters staff member

    Thanks for the information.

    Seems you're using filename in query parameter. As per API documentation, filename should be used only in body. Please try and let us know if you have questions.

  • Thank you.  For some reason I had gotten it into my head that I also had to pass filename as a parameter.