Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

How to return false? #104

Closed
Closed
@kilinanatoly

Description

@kilinanatoly

I am from Russia and I write through an interpreter.
I need to return false under certain conditions and output an error for the user. how to do it? I try this way:
Return Json :: encode (['files' => [], 'error' => 'The file exceeds the permissible size in XXX MB']);

But still in the console I see that the 'fileuploaddone' method works. Go out mistake.Empty file upload result. Please help me!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions