Skip to content
New issue

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

[Bug] crud-api doesn't work properly with upload fields. #5644

Open
rezahmady opened this issue Aug 31, 2024 · 0 comments
Open

[Bug] crud-api doesn't work properly with upload fields. #5644

rezahmady opened this issue Aug 31, 2024 · 0 comments
Assignees
Labels
Possible Bug A bug that was reported but not confirmed yet.

Comments

@rezahmady
Copy link

rezahmady commented Aug 31, 2024

Bug report

What I did

in store method i want to change field :
my field :

[
    'name'  => 'logoImage',
    'label' => trans("serial::lang.video_logo_image"),
    'type' => 'image',
    'withFiles' => [
        'disk' => $static_disk,
        'path' => 'images',
    ],
    'wrapper'   => [
        'class'  => "form-group col-md-6 ltr"
    ],
    'fake'  => true,
    'tab'   => trans('vod::lang.video_images_tab'),
],

i want to change field value :

$crud->getRequest()->request->add([
    'imagePoster' => $value,
]);

or

$this->crud->modifyField('imagePoster', [ 'value' => $value]);

This api works well with fields that do not have the withFiles attribute

What I expected to happen

field value save correctly.

What happened

field value is null.

I know that you are working on the redesign of the upload field, but this issue is very important to me and I cannot wait until you finish that task. If possible, check and fix this issue.

@pxpm pxpm added Possible Bug A bug that was reported but not confirmed yet. and removed triage labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Possible Bug A bug that was reported but not confirmed yet.
Projects
Status: Todo
Development

No branches or pull requests

3 participants