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

#1 2025-03-26 22:17:03

jorgealex72@gmail.com
Member
Registered: 2025-03-13
Posts: 14

ERROR - Uploading attachments when new creating ticket

My friends, hope you're doing good

I'm not sure if it's the version I use (GLPI 10.0.6), but when I create a new TICKET and attach more than one file to it, finally it only uploads only one file (usually the first one I select). I have also noticed that using the API https://websiteglpi/apirest.php/Ticket and adding the parameters correctly it also accepts me to add several files but after recording I see on the web that it has only uploaded one file.

Faced with this, I have two possible solutions:

1. Allow you to upload more than one file. Has anyone been able to solve this problem with v. GLPI 10.0.6 ??

2. Indicate that only one file is allowed to be uploaded. To do this, through the web interface I must place a message when creating the ticket (http://websiteglpi/front/ticket.form.php) indicating that it is only accepted to attach a file, but I cannot find the source where I can add that message. Similarly the API must return a message indicating that, only one file can be attached, (here I do think I can locate the file, but if someone gives me support with this, welcome)

I appreciate your kind support in advance

Regards

Offline

#2 2025-03-27 14:39:30

cconard96
Moderator
Registered: 2018-07-31
Posts: 3,226
Website

Re: ERROR - Uploading attachments when new creating ticket

Should be fixed/added in GLPI 11.

https://github.com/glpi-project/glpi/pull/19180


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#3 2025-03-27 21:43:56

jorgealex72@gmail.com
Member
Registered: 2025-03-13
Posts: 14

Re: ERROR - Uploading attachments when new creating ticket

Hi, cconard96

Thanks for your help, just now is there any way to display a message stating that only one file is allowed to be uploaded, before you run the create / upgrade ticket ??

If possible, which file should I modify to trigger this message??

Offline

#4 2025-03-28 01:21:08

cconard96
Moderator
Registered: 2018-07-31
Posts: 3,226
Website

Re: ERROR - Uploading attachments when new creating ticket

The fix I linked to is only for the API. I am not aware of the issue on the web interface but GLPI 10.0.6 is fairly old and there have been hundreds of fixes in GLPI 10 since that release.


GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.

Offline

#5 2025-03-28 14:30:51

Willysaurio
Member
From: San Juan - Argentina
Registered: 2019-09-20
Posts: 35

Re: ERROR - Uploading attachments when new creating ticket

jorgealex72@gmail.com wrote:

My friends, hope you're doing good

I'm not sure if it's the version I use (GLPI 10.0.6), but when I create a new TICKET and attach more than one file to it, finally it only uploads only one file (usually the first one I select). I have also noticed that using the API https://websiteglpi/apirest.php/Ticket and adding the parameters correctly it also accepts me to add several files but after recording I see on the web that it has only uploaded one file.

Faced with this, I have two possible solutions:

1. Allow you to upload more than one file. Has anyone been able to solve this problem with v. GLPI 10.0.6 ??

2. Indicate that only one file is allowed to be uploaded. To do this, through the web interface I must place a message when creating the ticket (http://websiteglpi/front/ticket.form.php) indicating that it is only accepted to attach a file, but I cannot find the source where I can add that message. Similarly the API must return a message indicating that, only one file can be attached, (here I do think I can locate the file, but if someone gives me support with this, welcome)

I appreciate your kind support in advance

Regards

Buen día jorgealex72@gmail.com

en principio pareciera ser un tema de como tienes configurado php.

Revisa que versión de php estás utilizando con tu GLPI
Luego edita tu archivo php.ini en /etc/php/8.2/apache2/php.ini (En mi caso 8.2; si vas a Configuracion/General/Sistema vas a ver tu versión de php.)


Busca la variable max_file_uploads = 10 (en mi caso es 10)

si tiene ; deberás quitarlo para habilitarla

En el archivo php.ini aparece así con el significado de la misma
; Maximum number of files that can be uploaded via a single request
max_file_uploads = 10

Luego reinicia tu apache2

PD: Si esto solucionó (o no) tu inconveniente; coméntalo para otros que pudieran tener el mismo problema.

Offline

#6 2025-03-28 16:22:20

jorgealex72@gmail.com
Member
Registered: 2025-03-13
Posts: 14

Re: ERROR - Uploading attachments when new creating ticket

Hi Willysaurio ..!

Thank you very much for your support, but it's not the problem, my php.ini is set to max_file_uploads=20

Offline

Board footer

Powered by FluxBB