[ckan-dev] Ckanclient file upload fails

David Read david.read at hackneyworkshop.com
Tue Apr 2 15:48:39 UTC 2013


See useful discussion of this here:
http://stackoverflow.com/questions/14535523/uploading-files-to-a-dataset-in-ckan-datahub-io-through-a-java-client

I don't have much experience of it myself and questions on this matter
on this left have been unanswered. I would have expected the
ckanclient implementation remains the reference code, and the
StackOverflow comment from Karel appears the only helpful guidance out
there.

I think the upload file feature was developed as a beta feature and
left somewhat undocumented and a bit cranky. It really needs one of
the funded CKAN deployment teams to take it on and make it robust.

David

On 29 March 2013 16:49, Prahadeesh S <prahad at gmail.com> wrote:
> Hi,
>
> I am trying to upload a file using CkanClient.
>
> I could create the package using this client and authorization works fine.
>
> whereas if I try the CkanClient.upload_file function to upload a file,
> authorization is going through success for storage auth. But it fails at
> storage.StorageController.upload_handle. This function doesn't receive the
> user details as part of the request.
>
> Am I doing something wrong here during upload?
>
> Thanks
> Prahadeesh
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> http://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: http://lists.okfn.org/mailman/options/ckan-dev
>




More information about the ckan-dev mailing list