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

upload_dataset_resource route resets resource title to the filename #2684

Open
thom4parisot opened this issue Nov 24, 2021 · 0 comments
Open

Comments

@thom4parisot
Copy link
Contributor

Detailed Description

I do a curl to update a resource file like this:

curl -F "file=@rpg-bio-2019-r01.geojson.gz" -H 'Accept: application/json' -H 'X-Api-Key: eyJhb…' 'https://www.data.gouv.fr/api/1/datasets/616d6531c2951bbe8bd97771/resources/c856f2aa-19d7-4921-8da1-c72d67f5c2a5/upload/'

After the upload, the resource title has changed from "Région Guadeloupe (01) - année 2019" to "rpg-bio-2019-r01.geojson.gz".

In a nutshell, I have lost some content whereas my expectation was to solely replace a resource file.

Context

When I replace a resource, I want to preserve its existing title.

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

1 participant