You are not logged in.
I make POST-request from Postman:
apirest.php/TicketFollowup
Headers:
Session-Token: blablabla
Content-Type: multipart/form-data
Body - form-data:
key: value:
uploadManifest:
{
"input": {
"tickets_id": 15,
"content": "Photo 3"
}
}
filename[0]:
type: file
value: uploaded from PC - 142 Kb.
Response:
{
"id": 16,
"message": "Document copy succeeded.",
"upload_result": {
"filename": [
{
...
}
]
}
}
201 - Created
But now I wanna do another request with one change:
filename[0]:
type: text
value: url of image (image - 142 Kb still, at least, when I download it)
Response:
[
"ERROR_UPLOAD_FILE_TOO_BIG_POST_MAX_SIZE",
"The file seems too big"
]
400 Bad Request
I've seen another duscussions about this topic:
forum.glpi-project.org/viewtopic.php?id=282629
forum.glpi-project.org/viewtopic.php?id=176544
forum.glpi-project.org/viewtopic.php?id=209103
I checked:
- I have the right syntax;
- it's not about size really, only 142 Kb;
- in my PHP and Apache settings at least 2 Mb are allowed.
I don't understand, why this error appers.
Offline