Closed blessen131 closed 3 months ago
Hello there! Thanks for opening your first issue on this repo!
Just a heads-up: Here at Backpack we use GitHub Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.
Backpack communication channels:
backpack-for-laravel
tag;Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.
Thank you!
-- Justin Case The Backpack Robot
Hey @blessen131
I'm assuming you have an upload
disk defined in config/filesystems.php
.
From your code, I can see that:
$disk = "uploads";
but you have not defined the same disk in the column or field for reading. Please add 'disk' => 'upload'
to the column & field definition.protected $casts = [
'files' => 'array',
];
I hope this helps. I recommend you upgrade to v6. It comes with automatic file handling/uploading/deletion features and many other valuable features. Support for v5 has been discontinued, and Community-forum would be the right place for queries like this.
See you around. Have a great day.
I am trying to upload/view multiple files with Backpack:5.x
Code for the file upload
Problem 1: Files saved in public/uploads/notes directory but when I edit an item, the url for the uploaded file is www.test.com/notes/file.txt getting 404(missing the /uploads/notes/file.txt).
Problem 2: When I am trying to add in list view, I am getting this error - count(): Parameter must be an array or an object that implements Countable (View: /vendor/backpack/crud/src/resources/views/crud/columns/upload_multiple.blade.php)