Skip to content

File Receiving Interface.#2

Closed
amit-62 wants to merge 8 commits intoControlCore-Project:devfrom
amit-62:dev
Closed

File Receiving Interface.#2
amit-62 wants to merge 8 commits intoControlCore-Project:devfrom
amit-62:dev

Conversation

@amit-62
Copy link
Contributor

@amit-62 amit-62 commented Jun 23, 2022

No description provided.

@@ -0,0 +1,22 @@
#!/bin/bash

SERVICES=('init' 'ctl' 'pm' 'cleanup')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be the methods you are defining.

So, it should be,
SERVICES=('upload_file' 'execute')
and any method you introduce in main.py

fri/test.py Outdated

payload={}
files=[
('files[]',('example.py',open('/home/amit/Desktop/concore/flaskApi/example.py','rb'),'application/octet-stream'))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls make it a relative path and get the file from the current directory. No hard-coded locations please. They will simply not work outside your laptop.

@amit-62 amit-62 closed this Jun 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants