Skip to content

How to refresh file upload? #46

@vojtasvoboda

Description

@vojtasvoboda

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions