-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 document via REST API v2 does not work #11703
Comments
As investigated in GeoNodeUserGroup-DE/geonodectl#29 (comment) |
@ahmdthr will take a look at this issue |
@gannebamm I've run a test right now and it works fine. |
@ahmdthr please take a look at it and close if finished |
@gannebamm can we close this? |
Hi, sorry for the late reply. I tested it again with the proper endpoint. I can verify it is working fine. |
… via the REST API. (#11872) * Documents can now be uploaded without specifying title via the REST API. * Added test for document upload without title. * Fixed the document upload without title test. * Fixed linting issues. * Fixed tests for uploading document without a title. * Fixed Documents serializer. * Added file name as title when no title is provided. * Fixed tests for uploading document without a title. * 1- Using the name of the file as a title for document upload if no title is specified instead of 'None'. 2- Fixed test for uploading document without a title. * Fixed the test for document upload without a title. --------- Co-authored-by: Giovanni Allegri <giohappy@gmail.com>
… via the REST API. (#11872) * Documents can now be uploaded without specifying title via the REST API. * Added test for document upload without title. * Fixed the document upload without title test. * Fixed linting issues. * Fixed tests for uploading document without a title. * Fixed Documents serializer. * Added file name as title when no title is provided. * Fixed tests for uploading document without a title. * 1- Using the name of the file as a title for document upload if no title is specified instead of 'None'. 2- Fixed test for uploading document without a title. * Fixed the test for document upload without a title. --------- Co-authored-by: Giovanni Allegri <giohappy@gmail.com> (cherry picked from commit 852ce01)
… via the REST API. (#11872) (#12612) * Documents can now be uploaded without specifying title via the REST API. * Added test for document upload without title. * Fixed the document upload without title test. * Fixed linting issues. * Fixed tests for uploading document without a title. * Fixed Documents serializer. * Added file name as title when no title is provided. * Fixed tests for uploading document without a title. * 1- Using the name of the file as a title for document upload if no title is specified instead of 'None'. 2- Fixed test for uploading document without a title. * Fixed the test for document upload without a title. --------- Co-authored-by: Giovanni Allegri <giohappy@gmail.com> (cherry picked from commit 852ce01) Co-authored-by: ahmdthr <116570171+ahmdthr@users.noreply.github.com>
Expected Behavior
If I follow the instruction here: https://docs.geonode.org/en/master/devel/api/usage/index.html#resource-upload
I should be able to upload a file via the REST API V2 POST endpoint
Actual Behavior
Result:
Steps to Reproduce the Problem
Specifications
tested on stable.demo and a local test instance. Both resulted in the same behaviour
The text was updated successfully, but these errors were encountered: