Skip to content

Commit 9c8e23a

Browse files
committed
FRI updated
1 parent 55e97c7 commit 9c8e23a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

fri/service_config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
SERVICES=('init' 'ctl' 'pm' 'cleanup')
3+
SERVICES=('upload_file' 'execute')
44
for service in "${SERVICES[@]}"
55
do
66
name="name="$service

fri/test.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
import requests
2+
import os
23

34
url = "http://127.0.0.1:5000/multiple-files-upload"
45

6+
path = os.path.abspath("example.py")
7+
58
payload={}
69
files=[
7-
('files[]',('example.py',open('/home/amit/Desktop/concore/flaskApi/example.py','rb'),'application/octet-stream'))
10+
('files[]',('example.py',open( path,'rb'),'application/octet-stream'))
811
]
912
headers = {}
1013

0 commit comments

Comments
 (0)