marcgibbons / django-rest-swagger

Swagger Documentation Generator for Django REST Framework: deprecated
https://marcgibbons.com/django-rest-swagger/
BSD 2-Clause "Simplified" License
2.59k stars 599 forks source link

Django filefield is showing as String in Swagger UI and unable to browse files since browse button not coming #647

Open rajkumarkuppuraj opened 7 years ago

rajkumarkuppuraj commented 7 years ago

Django model filefiled is showing as String in Swagger UI and unable to browse files to upload thru UI.

Please suggest me if any issues.

Django==1.10, 1.11 django-mongodb-engine (0.6.0) django-rest-framework-mongoengine (3.3.1) django-rest-swagger (2.1.1) djangorestframework (3.6.2) djangorestframework-xml (1.3.0) djangotoolbox (1.8.0)

mountainpaul commented 7 years ago

Is this for a multipart form? Or just a file upload (i.e. not other data)?

ArtikUA commented 7 years ago

Have the same problem - I'm using standard API documentation for that pages, so have "browse" button, but it will be useful if we can upload files from Swagger

tovmeod commented 7 years ago

Core api doesn't have a File type yet, it is marked as # LATER: File

see https://github.com/core-api/python-coreschema/blob/master/coreschema/schemas.py#L24

albertmenglongli commented 5 years ago

Seems still not fixed