Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ahoek
wasp_sven_test
Commits
5d88ca1d
Commit
5d88ca1d
authored
Oct 25, 2022
by
ahoek
Browse files
Remove old code lines.
parent
e7cffdce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Scripts/uploadS3.py
View file @
5d88ca1d
...
...
@@ -4,7 +4,7 @@ import requests
import
logging
import
json
#requestInfo = requests.get('http://localhost:5000')
# Get URL parameters for S3-POST-Upload from Cloud VM
requestInfo
=
requests
.
get
(
'http://134.176.27.97/getS3UL'
)
...
...
@@ -18,7 +18,6 @@ url = "https://s3.computational.bio.uni-giessen.de/wasptest"
with
open
(
fileToUpload
,
'rb'
)
as
f
:
files
=
{
'file'
:
(
fileToUpload
,
f
)}
#http_response = requests.post(result['url'], data=result['fields'], files=files)
http_response
=
requests
.
post
(
url
,
data
=
requestJson
,
files
=
files
)
print
(
http_response
)
# If successful, returns HTTP status code 204
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment