Skip to content

Commit

Permalink
Issue #1049. Bump upload limit to 5.5MB to account for dataURI inflat…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
Mike Taylor committed May 19, 2016
1 parent edaab81 commit bb59edd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webcompat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@
app = Flask(__name__, static_url_path='')
app.config.from_object('config')

# set limit of 4MB for file uploads
app.config['MAX_CONTENT_LENGTH'] = 4 * 1024 * 1024
# set limit of 5.5MB for file uploads
# in practice, this is ~4MB (5.5 / 1.37)
# after the data URI is saved to disk
app.config['MAX_CONTENT_LENGTH'] = 5.5 * 1024 * 1024

github = GitHub(app)
limiter = Limiter(app)
Expand Down

0 comments on commit bb59edd

Please sign in to comment.