This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

deroccha
deroccha

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

deroccha
deroccha

sorry for the trouble works the model has to extend FileBase

cydrick.nonog
kattsoff
kattsoff

I have a problem with this too.


Call to undefined method Avers\Banner\FormWidgets\BannerUpload::resolveModelAttribute()

Can you hel me with it?

kattsoff
ichakesachin3010215
ichakesachin3010215

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.

maxDubovsky
maxDubovsky

Thanks everybody who contributed their time and posted this info ))) IT really helped a lot !

Mavichow
Mavichow

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.

21-28 of 28

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.