Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return custom data to the Frontend #403

Open
Timu57 opened this issue Mar 14, 2021 · 1 comment
Open

Return custom data to the Frontend #403

Timu57 opened this issue Mar 14, 2021 · 1 comment
Labels
Milestone

Comments

@Timu57
Copy link

Timu57 commented Mar 14, 2021

Bug Report

Q A
BC Break yes
Version 2.2

Summary

The documentation https://github.com/1up-lab/OneupUploaderBundle/blob/master/doc/response.md says that it is possible to send a response to the frontend. But that does not work at all.

I use Dropbox on the frontend.

How to reproduce

Just try to do the following in an Event-Listener:

$response = $event->getResponse();

$response["id"] = 12;

return $response;

I looked into the Code and there is no way that it can work..

return $this->createSupportedJsonResponse($response->assemble(), $statusCode);

It always returns the previously created EmptyResponse object.

How to solve

That bug could be solved by using references or reassigning the response variable with the return value of the handleChunkendUpload and handleUpload methods..

@stale
Copy link

stale bot commented May 16, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 16, 2021
@bytehead bytehead added bug and removed stale labels May 16, 2021
@bytehead bytehead added this to the 4.x milestone Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants