yajra / laravel-datatables-editor

Laravel DataTables Editor Integration.
https://yajrabox.com/docs/laravel-datatables/editor-installation
MIT License
115 stars 14 forks source link

Uploading files and images #84

Closed markplus closed 5 months ago

markplus commented 8 months ago

Summary of problem or feature request

I couldn't figure out how to upload files and images with the editor. I'm doing some tests but I always get the same error, is there a guide or documentation to understand how to do it? I need to enable uploading of pdf files and images but I'm completely stuck and don't understand how to do it

Code snippet of problem

System details

yajra commented 6 months ago

Use the File or Image field, then set some upload rules. Inspect the ajax request to see the payload. Unfortunately, it's not well-documented atm. Thanks!

Fields\Image::make('avatar')
  ->fieldInfo('The image must be square and at least 200x200 pixels.'),
github-actions[bot] commented 5 months ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 5 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.