Skip to content

Commit

Permalink
Issue #1049. Remove image upload from issues/new route.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor committed May 19, 2016
1 parent ffae0eb commit d25ec11
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions webcompat/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@ def create_issue():
# copy the form so we can add the full UA string to it.
form = request.form.copy()
form['ua_header'] = request.headers.get('User-Agent')
# Do we have an image or screenshot ready to be uploaded?
if ((request.files['image'] and request.files['image'].filename) or
request.form.get('screenshot')):
form['image_upload'] = json.loads(upload()[0])
if form.get('submit-type') == AUTH_REPORT:
if g.user: # If you're already authed, submit the bug.
response = report_issue(form)
Expand Down

0 comments on commit d25ec11

Please sign in to comment.