-
-
Couldn't load subscription status.
- Fork 2.2k
Closed
Description
Describe the Bug
Performing an API attachment update following the API docs can result in a Undefined array key "name" error.
This is because the name is not required for validation, but assumed to be set in the called service:
BookStack/app/Uploads/AttachmentService.php
Line 119 in b7476a9
| $attachment->name = $requestData['name']; |
Steps to Reproduce
- Perform API attachment update call without a
nameparameter. - See 500 error
Expected Behaviour
API call succeeds and no error thrown.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
v24.10.3