laravel-datatables-editor icon indicating copy to clipboard operation
laravel-datatables-editor copied to clipboard

Uploading files and images

Open markplus opened this issue 1 year ago • 2 comments

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

  • Operating System Linux
  • PHP Version 8.2
  • Laravel Version 10
  • Laravel-DataTables Version 10.1
  • Laravel-DataTables Editor Version 1.25

markplus avatar Jan 12 '24 11:01 markplus

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.'),

yajra avatar Feb 27 '24 09:02 yajra

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] avatar Mar 29 '24 00:03 github-actions[bot]

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

github-actions[bot] avatar Apr 05 '24 00:04 github-actions[bot]