Closed fkucuk closed 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"}] }
{ "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" }
{ "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.
bug has been fixed.
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: