Búsquedas recientes


No hay búsquedas recientes

Syntax Issue with Create Unassociated Attachment Endpoint



Publicado 06 ago 2021

I am trying to use the Create Unassociated Attachment endpoint to upload attachments to my Help Center. This works through Postman if I use the file property and link to a file on my local computer.

The issue is I am trying to do this with files from the web. When I set that same file property to be the publicly-accessible URL of an image, I get the following error. This is the entire response in Postman:

{
"errors": {
"file": [
"cannot be blank"
],
"base": [
"A file must be provided"
]
}
}

I'm sure the issue is syntax-related, but I'm having trouble finding documentation with correct examples. The example in the developer documentation doesn't seem to reference a file from a URL.

The only other community post I've found on the topic is from 2015, and it doesn't seem like the issue was resolved there.


0

5

5 comentarios

Thanks for confirming, but could you let me know if you tried the above mentioned steps yet? If so, please share your payload and responses. 

0


Postman works fine. am talking about uploading using apps framework request function

0


Hi Dinesh Korgaokar! Have you already tried the steps that Christopher outlined above? If so, please share the payload and a screenshot of the call from Postman, being sure to remove any sensitive information.

0


am facing same issue. 

0


Hi Matt,

The file would need to be uploaded from a local path rather than a URL. The API is expecting the file data itself to be submitted via POST using Content-Type: multipart/form-data.  Here's a breakdown of the cURL -F option that our documentation uses to demonstrate this concept.

0


Iniciar sesión para dejar un comentario.

¿No encontró lo que buscaba?

Nueva publicación