Anybody knows how to refresh file upload after the form is sent? How to remove selected file, when the form is successfully sent and persisted?
I tried:
<form ... data-request-success="$('this').request('{{ __SELF__ }}::onRefreshFiles')" ...
with:
public function onRefreshFiles()
{
$this->pageCycle();
}
but only I can see in Chrome console is an infinite loop of requests.
Anybody knows how to refresh file upload after the form is sent? How to remove selected file, when the form is successfully sent and persisted?
I tried:
<form ... data-request-success="$('this').request('{{ __SELF__ }}::onRefreshFiles')" ...with:
but only I can see in Chrome console is an infinite loop of requests.