the first time I installed CKAN 2.2 I added the Filestore extension to upload files. But when I tried to preview, I was getting errors. After following some other posts recommending to use datastore instead (since it's used instead of dataproxy), I reinstalled CKAN 2.2, added Datastore and confirmed that it's working using the read and write tests. This time round I haven't installed Filestore.
Now I'm trying to upload a file as a resource to a dataset through CKAN's UI, so I choose a CSV/JSON file but then the screen responds with "Unable to authenticate upload". Looked through error log files, but nothing really told what was going on.
So my question is, can I upload a file using the UI directly into datastore?
Thanks and Regards,
Noel
There are two different things here, and you can definitely use both Filestore and Datastore at the same time:
To automatically add CSV files to the datastore whenever a dataset is created, you can use the DataPusher extension. This is a standalone service that runs on the server and uploads new files to the DataStore, regardless of if they were uploaded (via the Filestore) or are hosted somewhere else. (note that the old datastorer (with an extra r) is deprecated and no longer used).
To fix the errors you are getting when setting up the Filestore, check this answer with tips on what to check: Error when trying to upload a file to CKAN: "Failed to get credentials for storage upload. Upload cannot proceed"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With