Beispiel #1
0
def delete_member_image(doc_id, auth_info):
    filename = DocController.get_document_file_location(doc_id, auth_info)
    document = DocController.delete_document_file(auth_info, doc_id)
    delete_file(filename)
    return ResponseOK(document)
Beispiel #2
0
def get_document_file(doc_id, auth_info):
    location = DocController.get_document_file_location(doc_id, auth_info)
    return send_from_directory(os.getcwd(), location)