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

Missing error handling for upload_max_filesize errors #196

Open
ghost opened this issue Nov 11, 2015 · 4 comments
Open

Missing error handling for upload_max_filesize errors #196

ghost opened this issue Nov 11, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 11, 2015

I use the FineUploader. Maybe this issue occurs on other uploaders too.

The gallery endpoint returns for example this:

{"error":{"code":500,"message":"Internal Server Error","exception":[{"message":"The file \"Bla.png\" exceeds your upload_max_filesize ini directive (limit is 2048 KiB).","class":"Symfony\\Component\\HttpFoundation\\File\\Exception\\FileException","trace":

How to catch and pass it to the frontend to show this error to the user?

@bytehead
Copy link
Member

Your endpoint returns a JSON response, which you can process with javascript in your frontend.

@ghost
Copy link
Author

ghost commented Nov 11, 2015

@bytehead The FineUploaderResponse contains a feature for errors. I think the above internal server error should be catched and passed to the FineUploaderResponse error if possible. Is there any way to do this?

@bytehead bytehead reopened this Nov 11, 2015
@ghost ghost changed the title Error handling for Fine Uploader Missing error handling for upload_max_filesize errors Nov 11, 2015
@lsv
Copy link
Contributor

lsv commented Jan 22, 2016

@stale stale bot added the stale label Mar 28, 2020
@stale stale bot closed this as completed Jun 2, 2021
@bytehead bytehead reopened this Jun 7, 2021
@stale stale bot removed the stale label Jun 7, 2021
@stale stale bot added the stale label Aug 6, 2021
@bytehead bytehead removed the stale label Aug 9, 2021
@1up-lab 1up-lab deleted a comment from stale bot Aug 9, 2021
@1up-lab 1up-lab deleted a comment from stale bot Aug 9, 2021
@stale
Copy link

stale bot commented Oct 9, 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 Oct 9, 2021
@stale stale bot closed this as completed Oct 17, 2021
@bytehead bytehead removed the stale label Oct 18, 2021
@bytehead bytehead reopened this Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants