Forum

Create a attachment...
 
Notifications
Retirer tout

Create a attachment with the API

4 Posts
2 Utilisateurs
0 Reactions
1,051 Vu
(@evinatie)
Posts: 32
Trusted Member
Début du sujet
 
[#9369]

Hi,
I try to create a attachment between an activity and a file (name OUVERTURE_RESEAUX_PRESTATIONS.xls) using the API.
But I have this error :

Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 122880 bytes) in /projeqtor/tool/projeqtor_string.php on line 128

Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 114688 bytes) in Unknown on line 0

Can you help me ?

Thank you

Eric


 
Posté : 19/03/2024 6:09 pm
(@babynus)
Posts: 14952
Membre Admin
 

The API is not designed to include files


 
Posté : 26/03/2024 5:11 pm
(@evinatie)
Posts: 32
Trusted Member
Début du sujet
 

Hello,

I don't want to create an attachment with a file, I just want to create a line in the attachment table to do a migration from our old system to projeqtor.
When I'll done this, I will be able to copy the files from the old server to the new one in the good directory (%%%/attachment_[number])

Eric


 
Posté : 27/03/2024 3:55 pm
(@babynus)
Posts: 14952
Membre Admin
 

I'm afraid it won't work as the object Attachment expects to have a file in the create process.


 
Posté : 28/03/2024 7:17 pm
Share:
Retour en haut