[ckan-changes] commit/ckanextiati: amercader: Better check for missing file when uploading
Bitbucket
commits-noreply at bitbucket.org
Mon Oct 31 11:01:16 UTC 2011
1 new commit in ckanextiati:
https://bitbucket.org/okfn/ckanextiati/changeset/8e771f6af723/
changeset: 8e771f6af723
branch: spreadsheet-support
user: amercader
date: 2011-10-31 12:01:07
summary: Better check for missing file when uploading
affected #: 1 file
diff -r 6737186ed426d4ab63a652ebdffe3b882081a17f -r 8e771f6af7237c81bce59e78053cabbed6892a3b ckanext/iati/controllers/spreadsheet.py
--- a/ckanext/iati/controllers/spreadsheet.py
+++ b/ckanext/iati/controllers/spreadsheet.py
@@ -110,7 +110,7 @@
elif request.method == 'POST':
csv_file = request.POST['file']
- if not csv_file:
+ if not hasattr(csv_file,'filename'):
abort(403,'No file provided')
c.file_name = csv_file.filename
Repository URL: https://bitbucket.org/okfn/ckanextiati/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list