Skip to content
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: 2 additions & 0 deletions csv_uploader/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def post(self, request, *args, **kwargs):
if not request.user.is_authenticated():
return HttpResponse("Access Denied..", content_type='text/plain')
try:
if not (request.FILES['csv_file'].name.endswith('.csv')):
raise Exception("File type not matched. Please ensure to upload only CSV files")
handler = CsvHandler(str(request.POST['action_name']), request.FILES['csv_file'])
handler.process(request.user)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from setuptools import find_packages, setup

VERSION = (1, 0, 11)
VERSION = (1, 0, 14)

__version__ = ".".join(str(i) for i in VERSION)

Expand Down