Fix dislpay of mb file upload size

This commit is contained in:
Julien Nahum
2023-12-15 12:43:05 +01:00
parent 77ff8637b3
commit 5ee599fba5
4 changed files with 37 additions and 29 deletions

View File

@@ -50,7 +50,8 @@ class FormResource extends JsonResource
'notification_settings' => $this->notification_settings,
'removed_properties' => $this->removed_properties,
'last_edited_human' => $this->updated_at?->diffForHumans(),
'seo_meta' => $this->seo_meta
'seo_meta' => $this->seo_meta,
'max_file_size' => $this->max_file_size / 1000000,
] : [];
$baseData = $this->getFilteredFormData(parent::toArray($request), $this->userIsFormOwner());