We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
The upload of attachments (images or videos for example) does not work with the Trix editor (the default editor of Nova).
Example:
NovaSettings::addSettingsFields([ Panel::make('Homepage - event 1', [ Text::make('Name', 'event_1_name')->rules('required', 'max:100'), Trix::make('Description', 'event_1_description')->withFiles('public')->rules('required', 'max:64000'), ]), ]);
On upload, the request is:
Request URL: http://localhost:8000/nova-api/nova-settings/trix-attachment/event_1_description Request Method: POST Status Code: 404 Not Found
on vendor/laravel/nova/src/Http/Controllers/TrixAttachmentController.php:
vendor/laravel/nova/src/Http/Controllers/TrixAttachmentController.php
public function store(NovaRequest $request) { $field = $request->newResource() ->availableFields($request) ->findFieldByAttribute($request->field, function () { abort(404); }); return response()->json(['url' => call_user_func( $field->attachCallback, $request )]); }
Indeed, instead of "value" (from the Settings model) the field is "event_1_description", which causes the 404 error and prevents the upload
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello,
The upload of attachments (images or videos for example) does not work with the Trix editor (the default editor of Nova).
Example:
On upload, the request is:
on
vendor/laravel/nova/src/Http/Controllers/TrixAttachmentController.php
:Indeed, instead of "value" (from the Settings model) the field is "event_1_description", which causes the 404 error and prevents the upload
The text was updated successfully, but these errors were encountered: