Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Create a attachment...
 
Notifications
Clear all

Create a attachment with the API

4 Posts
2 Users
0 Reactions
1,080 Views
(@evinatie)
Posts: 32
Active Member
Topic starter
 
[#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


 
Posted : 19 Mar 2024 18H09
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

The API is not designed to include files


 
Posted : 26 Mar 2024 17H11
(@evinatie)
Posts: 32
Active Member
Topic starter
 

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


 
Posted : 27 Mar 2024 15H55
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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


 
Posted : 28 Mar 2024 19H17
Share:

Scroll to Top