This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
so here is the problem
//echo $classname; by october is use System\Models\File; in my case Kakuki\Portfolio\Models\PortfolioFile
$validationRules = ['max:'.$classname::getMaxFilesize()];
than getMaxFilesize() is implemented in
use October\Rain\Database\Attach\File as FileBase;
which I use in my Model but this does not seems to exists
"error":"Call to undefined method Illuminate\\Database\\Query\\Builder::getMaxFilesize()"
Last updated
I have a problem with this too.
Call to undefined method Avers\Banner\FormWidgets\BannerUpload::resolveModelAttribute()
Can you hel me with it?
Hello,
Thanks for your solution. But i want to delete record,currently i m able to delete record from my master table but not from new created table(for file details storage table) and also from disk (local or cloud),
I have done like this: public $attachMany = [ 'images' => ['Raviraj\RJSliders\Models\File', 'order' => 'sort_order', 'delete' => true],
won't work.
Thanks everybody who contributed their time and posted this info ))) IT really helped a lot !
Thanks! appreciate ya'll! Thanks everyone to their time on this post.
Been facing the same issue and was driving me crazy to modify the upload directory especially outside of wwwroot.