Trix field with files does not work in Action fields #6393
-
Description:Action with
<?php
namespace App\Nova\Actions;
use Laravel\Nova\Actions\Action;
use Laravel\Nova\Fields\Trix;
use Laravel\Nova\Http\Requests\NovaRequest;
class TestAction extends Action
{
public function fields(NovaRequest $request)
{
return [
Trix::make('Reason')->withFiles('public')
];
}
} After pasting image to Trix field in Nova, there is 404 error:
Uploading when Trix field is added to Resource works correctly. Detailed steps to reproduce the issue on a fresh Nova installation:
|
Beta Was this translation helpful? Give feedback.
Answered by
crynobone
May 16, 2024
Replies: 1 comment 1 reply
-
@crynobone I don't understand why bug report was moved to discussion. Trix field is not beta feature, documentation says nothing about incompatibility with Actions, so what is the reason? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Attachment fields explicitly limited to Resources, so this goes to Ideas and Feature Requests.