Merge branch 'master' of https://hyde.infosys.tuwien.ac.at/aic20/g4t2
This commit is contained in:
@@ -97,7 +97,7 @@ class ImageEndpoint:
|
||||
|
||||
if not MongoDBService.createSingle(metadata, identifier, decoded_image):
|
||||
print("Could not save metadata")
|
||||
return JsonResponse({'Result': 'Error - could not upload to MongoDB', 'id': identifier, 'filename': filename}, status=500,safe=False)
|
||||
return JsonResponse({'Result': 'Error - could not upload to MongoDB', 'id': identifier, 'filename': filename},status=500,safe=False)
|
||||
if not DropboxService.create_file(filename, decoded_image):
|
||||
print("Could not save image to dropbox")
|
||||
return JsonResponse({'Result': 'Error - could not upload to Dropbox', 'id': identifier, 'filename': filename},status=500, safe=False)
|
||||
|
||||
Reference in New Issue
Block a user