Project

General

Profile

Rest API - file attachment, upload token is not complete.

Added by Kevin Tomba about 10 years ago

I'm working on a plugin which allows the user to attach files to a document, it's working pretty well except that sometimes the body response to my request to uploads.json does contain an incomplete upload token.

Here is what I get:

{"upload":{"token":"565."}}

Because of this, my second request in order to attach the file to a document fails, do you know why I get this? Sometimes it works perfectly.