You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#26 2024-03-01 15:21:07

thigon77
Member
Registered: 2024-03-01
Posts: 1

Re: Uploading document or file through API

Hello,

I will be very greatfull if someone could send to me an example of the body request, please ?
I have to write the http request with a specific language (consequently without any library) and it's not easy at all.
The manual is not really helpfull (quite light), i tried so many request, i spent more than one day trying to find,without success.

Thanks by advance.

Last edited by thigon77 (2024-03-01 15:53:56)

Offline

#27 2024-11-06 19:06:31

renan.redel
Member
Registered: 2023-09-14
Posts: 4

Re: Uploading document or file through API

I managed to get this working using the file from my computer.
Thanks @mecmav

Also, is possible to upload documents in base64 (using application/json)?

Offline

#28 2024-12-04 03:09:21

vinicius.n.aguiar
Member
Registered: 2024-11-24
Posts: 6

Re: Uploading document or file through API

I'm getting Response 400 - ['ERROR_UPLOAD_FILE_TOO_BIG_POST_MAX_SIZE', 'The file seems too big'].

The file size is aroung 3Mb and the PHP files are set like:

- upload_max_filesize = 20M
- post_max_size = 30M
- memory_limit = 128M

Any clue what's causing this?

Offline

Board footer

Powered by FluxBB