django-rest-swagger icon indicating copy to clipboard operation
django-rest-swagger copied to clipboard

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

Open rajkumarkuppuraj opened this issue 7 years ago • 4 comments

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)

rajkumarkuppuraj avatar May 01 '17 15:05 rajkumarkuppuraj

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

mountainpaul avatar May 26 '17 20:05 mountainpaul

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

ArtikUA avatar Jun 03 '17 18:06 ArtikUA

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

tovmeod avatar Jun 19 '17 10:06 tovmeod

Seems still not fixed

albertmenglongli avatar Aug 07 '19 08:08 albertmenglongli