ENXF NET
Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
- Joined
- Nov 13, 2018
- Messages
- 24,664
- Points
- 823
Reputation:
I have an upload form and users can upload a file, but I would like to check on save if they already have an entry, if so then delete it.
So I'm trying to do it in my actionSave:
Code:
I already have a functioning actionDelete:
Code:
Read more
Continue reading...
So I'm trying to do it in my actionSave:
Code:
Code:
public function actionSave(ParameterBag $params) {
// validate form inputs
// check if user already has an entry, if so delete it
}
I already have a functioning actionDelete:
Code:
Code:
$plugin = $this->plugin('XF:Delete');
return $plugin->actionDelete(
$signup,
$this->buildLink('signup/delete'...
Read more
Continue reading...