Skip to content

emove obsolete signal argument #81

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ajaxuploader/backends/s3.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from multiprocessing import Pool
from StringIO import StringIO
from io import StringIO

import boto
from django.conf import settings
Expand Down
2 changes: 1 addition & 1 deletion ajaxuploader/signals.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.dispatch import Signal


file_uploaded = Signal(providing_args=['backend', 'request'])
file_uploaded = Signal()
4 changes: 3 additions & 1 deletion ajaxuploader/views/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ def _ajax_upload(self, request, *args, **kwargs):
try:
if 'qqfile' in request.GET:
filename = request.GET['qqfile']
elif 'qqfilename' in request.GET:
filename = request.GET['qqfilename']
else:
filename = request.REQUEST['qqfilename']
filename = request.POST['qqfilename']
except KeyError:
return HttpResponseBadRequest("AJAX request not valid")
# not an ajax upload, so it was the "basic" iframe version with
Expand Down