lucas.sanner54070 Approved

Member since: 2020-03-04

Recent posts by lucas.sanner54070
Post When

I'd like to use the FileUpload widget for one of my component's forms. I noticed there is a dedicate...

Posted in Using the FileUpload form widget on frontend ?

I think I got it.
It's actually very subtle.

Deletes only the model.

$data = post();
$member->attes...

Posted in How to delete a file ?

I'm not sure...
According to the October\Rain\Database\Attach\File class:

/**  
 * After model is de...

Posted in How to delete a file ?

mjauvin said:

try detach() instead of delete()

I get an error: Call to undefined method

Posted in How to delete a file ?

I can't figure out how to delete properly an uploaded file.

In my model:

...

public $attachMany = [...

Posted in How to delete a file ?

mjauvin said: You could just do:

if ($redirect = $this->asExtension('FormController')->update_onSav...

Posted in Getting field attributes ? [resolved]

I get confused regarding the timepicker displaying.
Let's take a simple datetime field:

     updated...

Posted in Timepicker 12 hour am/pm format ?

mjauvin said:

How exactly do you use the update_onSave() in your controller? Care to share the resu...

Posted in Getting field attributes ? [resolved]

The first version works fine for me as I use it in the update_onSave Ajax handler.
Thanks for your h...

Posted in Getting field attributes ? [resolved]

How can I get the attributes (set in fields.yaml) of a given field from my controller in backend ?
I...

Posted in Getting field attributes ? [resolved]