mirror of
https://github.com/sartography/cr-connect-workflow.git
synced 2025-02-23 05:08:32 +00:00
wip
This commit is contained in:
parent
b0a6af8d5e
commit
8b5686ce40
@ -107,6 +107,13 @@ def set_reference_file(name):
|
|||||||
return FileSchema().dump(to_file_api(file_model))
|
return FileSchema().dump(to_file_api(file_model))
|
||||||
|
|
||||||
|
|
||||||
|
def add_reference_file(workflow_spec_id=None, workflow_id=None, task_spec_name=None, form_field_key=None):
|
||||||
|
file = connexion.request.files['file']
|
||||||
|
file_model = FileService.add_reference_file(name=file.filename, content_type=file.content_type,
|
||||||
|
binary_data=file.stream.read())
|
||||||
|
return FileSchema().dump(to_file_api(file_model))
|
||||||
|
|
||||||
|
|
||||||
def update_file_data(file_id):
|
def update_file_data(file_id):
|
||||||
file_model = session.query(FileModel).filter_by(id=file_id).with_for_update().first()
|
file_model = session.query(FileModel).filter_by(id=file_id).with_for_update().first()
|
||||||
file = connexion.request.files['file']
|
file = connexion.request.files['file']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user