def api_process_file():
file_hash = clean_hash(request.query.file_hash)
if len(file_hash) != 40:
response.status = 400
return jsonize({'message': 'Invalid hash format (use sha1)'})
res = process_file(file_hash, True)
if res is None:
response.status = 404
return jsonize("File not found in the database")
return jsonize("File processed")
评论列表
文章目录