[ckan-dev] posting / uploading a file to a dataset - enabling file storage?

Clement Levallois clementlevallois at gmail.com
Thu Jan 24 10:59:08 UTC 2013


Hi,

Following my previous question yesterday I had a look at the python client,
very useful. I am now testing the uploading of files to a dataset on
datahub.io through a Java client of the API. 2 responses I get to my POST
request:

- a 413 error ("request entity too large") when I try to upload a file of
2.83 Mb (a picture). This disappears when I shrink the file to a smaller
size. Is there a limit to file size uploads?

- a 500 error ("internal server error"). This is where I am stuck. It might
have to do with the fact that my dataset on datahub.io is not "datastore
enabled"? (I see a disabled "Data API" button next to my resource files in
the dataset, with a tooltip saying:
"Data API is unavailable for this resource as DataStore is disabled"

=> is it a possible reason for this 500 error? If so, how could I enable it
from the client side? (pointers to Python code would be useful!)

Thx!

Clement
PS: the dataset I am using for testing purposes:
http://datahub.io/dataset/testapi


--------------------------------------------
Clement Levallois, PhD
Erasmus University Rotterdam
The Netherlands

pro website<http://www.erim.eur.nl/ERIM/People/Person_Details?p_aff_id=4321>
 / personal website <http://www.clementlevallois.net/>

twitter and skype: @seinecle
Discover the NESSHI project: http://www.nesshi.eu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130124/fa0177f0/attachment.html>


More information about the ckan-dev mailing list