Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File uploads don't work against on remote API calls #128

Open
amercader opened this issue Nov 10, 2017 · 5 comments
Open

File uploads don't work against on remote API calls #128

amercader opened this issue Nov 10, 2017 · 5 comments

Comments

@amercader
Copy link
Member

Tested against CKAN 2.7 and master, the following doesn't work for me:

ckanapi action resource_create package_id=9222f234-2839-4864-8463-03dca09d6237 \ 
name="Test upload API 35" \ 
upload=@/home/adria/Downloads/valid.csv \ 
-a XXXX \ 
-r http://localhost:5000

It creates the resource, but no file is nowhere to be seen.

@wardi
Copy link
Contributor

wardi commented Nov 10, 2017

tried upload@/home/adria/Downloads/valid.csv instead?

@amercader
Copy link
Member Author

Yes, same result.

@wardi
Copy link
Contributor

wardi commented Nov 10, 2017

Hmm. I've just tested ckanapi 4.1 against ckan master and I'm able to upload a file with -c or -r Could you give me any more information about your environment?

@wardi
Copy link
Contributor

wardi commented Nov 10, 2017

would also be good to know if uploading a file with curl works but ckanapi -r does not

@smotornyuk smotornyuk assigned smotornyuk and unassigned smotornyuk Nov 14, 2017
@wardi
Copy link
Contributor

wardi commented Dec 13, 2017

@amercader more details would be helpful here. Does curl work for you, and if so what are the exact curl and ckanapi commands you're trying?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants