Skip to content
Snippets Groups Projects
Commit 78bd818a authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FEAT #14458 TIME 0:20 fix import contacts with large csv

parent 73d9564d
No related branches found
No related tags found
No related merge requests found
......@@ -1207,6 +1207,8 @@ class ContactController
return $response->withStatus(403)->withJson(['errors' => 'Service forbidden']);
}
ini_set('memory_limit', -1);
$body = $request->getParsedBody();
if (!Validator::arrayType()->validate($body['contacts'])) {
return $response->withStatus(400)->withJson(['errors' => 'Body contacts is empty or not an array']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment