SWE574-Groupago / heritago

A platform where anyone can share and learn about cultural heritages.
MIT License
9 stars 8 forks source link

Bug at api/v1/heritages/{heritageid}/image/{mmedyaid} endpoint #152

Closed fkucuk closed 7 years ago

fkucuk commented 7 years ago

Error: The 'file' attribute has no file associated with it. error

steps to reproduce:

1- POST api/v1/heritages/ { "title": "Helva", "description": "desc", "origin": [{"name": "Turkey"}, {"name": "Afghanistan"}], "basicInformation": [{"name": "AKA", "value": "Halawa"}], "tags": [{"name": "religion"}, {"name": "christmas"}, {"name": "figure"}] }

2- POST api/v1/heritages/{keyReturnedFromStep1}/multimedia The system, now, allows the following json post. { "type":"image" }

3- POST api/v1/heritages/{keyReturnedFromStep1}/image/{keyReturnedFromStep2} gives the following error:

ValueError at /api/v1/heritages/1/image/1 The 'file' attribute has no file associated with it.

fkucuk commented 7 years ago

bug has been fixed.