Hello
New user here.
I've look through the forums, checked permissions, php-ini and think all is ok.
But when I try to upload a file (small png's, pdf, odt, jpg etc), it flashes Error 400 Bad Request in read on top of the upload form, and the selected files does not show up next to the to the little paperclip after the error message has blinked an gone away.
In the log (/data/logs/[todays date]) there is this line:
[2019-10-31 12:56:48] Espo.ERROR: (400) POST /api/v1/Attachment; line: 84, file: /Library/WebServer/Sites/mammals.se/crm/application/Espo/Core/Controllers/Record.php [] []
That is this part (the first IF in bold is line 84)
public function actionCreate($params, $data, $request)
{
if (!is_object($data)) throw new BadRequest();
if (!$request->isPost()) {
throw new BadRequest();
}
if (!$this->getAcl()->check($this->name, 'create')) {
throw new Forbidden();
}
$service = $this->getRecordService();
if ($entity = $service->create($data)) {
return $entity->getValueMap();
}
throw new Error();
}
Latest version of EspoCRM 5.7.5, also on Mac 10.13, with PHP 7.2.21 and MySQL 5.7.20
Everything on this page is green: site name: /#Admin/systemRequirements
Some things are:
All folders are writeable or readable in green according to same page.
Any tips about what to look for?
New user here.
I've look through the forums, checked permissions, php-ini and think all is ok.
But when I try to upload a file (small png's, pdf, odt, jpg etc), it flashes Error 400 Bad Request in read on top of the upload form, and the selected files does not show up next to the to the little paperclip after the error message has blinked an gone away.
In the log (/data/logs/[todays date]) there is this line:
[2019-10-31 12:56:48] Espo.ERROR: (400) POST /api/v1/Attachment; line: 84, file: /Library/WebServer/Sites/mammals.se/crm/application/Espo/Core/Controllers/Record.php [] []
That is this part (the first IF in bold is line 84)
public function actionCreate($params, $data, $request)
{
if (!is_object($data)) throw new BadRequest();
if (!$request->isPost()) {
throw new BadRequest();
}
if (!$this->getAcl()->check($this->name, 'create')) {
throw new Forbidden();
}
$service = $this->getRecordService();
if ($entity = $service->create($data)) {
return $entity->getValueMap();
}
throw new Error();
}
Latest version of EspoCRM 5.7.5, also on Mac 10.13, with PHP 7.2.21 and MySQL 5.7.20
Everything on this page is green: site name: /#Admin/systemRequirements
Some things are:
max_execution_time | 360 | Success |
max_input_time | 360 | Success |
memory_limit | 256M | Success |
post_max_size | 256M | Success |
upload_max_filesize | 256M | Success |
Any tips about what to look for?
Comment