Implement file upload in Geonode Django Rest Framework

42 views
Skip to first unread message

Pankaj Saharma

unread,
Mar 24, 2022, 1:05:59 PM3/24/22
to Django REST framework

I am trying to upload a simple textfile as a Geonode document to Geonode via the Django Rest Framework. I know the file upload using GeoNode DRF is not implemented. I also know that the Geonode DRF is based on the DRF on the Github respository.

I want to implement the file upload facility in Geonode DRF. I have been going in circles looking at the Python code - I know I would have to modify the request.py file, but how?

Anyone can give me some pointers as to where to start, or maybe some file I can replace in DRF and it would start to work. I am posting my FETCH CODE which is not working because the file handler code is not implemented.

geonodeDRF.png

Reply all
Reply to author
Forward
0 new messages