Skip to content
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.

Add handling for huge profile picture uploads #637

Open
Atyanar opened this issue Apr 14, 2016 · 0 comments
Open

Add handling for huge profile picture uploads #637

Atyanar opened this issue Apr 14, 2016 · 0 comments

Comments

@Atyanar
Copy link
Contributor

Atyanar commented Apr 14, 2016

Currently the generic "We're sorry, but something went wrong." message is thrown when a user tries to upload a picture that is larger than 1 MB.
The picture could be automatically scaled down or a more intuitive error message could be shown.

Excerpt of the stack trace:

13:57:41 web.1 | I, [2016-04-14T13:57:40.883853 #177] INFO -- : Completed 500 Internal Server Error in 279ms (ActiveRecord: 8.5ms)
13:57:41 web.1 | F, [2016-04-14T13:57:40.887394 #177] FATAL -- :
13:57:41 web.1 | ActionView::MissingTemplate (Missing template users/edit, application/edit with {:locale=>[:de, :en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :slim, :coffee, :jbuilder]}. Searched in:
13:57:41 web.1 | * "/mammooc/app/views"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant