|
2 years ago | |
---|---|---|
.. | ||
storage | 2 years ago | |
README.md | 2 years ago | |
logging.custom.ini | 2 years ago | |
logging.ini | 2 years ago | |
post-create.sh | 2 years ago | |
post-finish | 2 years ago | |
post-finish.py | 2 years ago | |
post-finish.sh | 2 years ago | |
post-receive.sh | 2 years ago | |
post-terminate.sh | 2 years ago | |
pre-create | 2 years ago | |
pre-create.py | 2 years ago | |
pre-create.sh | 2 years ago | |
requirements.txt | 2 years ago |
README.md
The JSON data of a hook contains the following code:
'''
{
"Upload": {
"ID": "fae477007048c363be15cc0f6757eaf1",
"Size": 243487,
"SizeIsDeferred": false,
"Offset": 243487,
"MetaData": {
"code": "858859",
"filename": "provider_for_google_calendar-68.2.1-tb.xpi",
"filetype": "application/x-xpinstall",
"ip": "127.0.0.1",
"name": "provider_for_google_calendar-68.2.1-tb.xpi",
"relativePath": "null",
"study": "08211acd-f899-41da-a9cf-15a2db78bb03",
"type": "application/x-xpinstall"
},
"IsPartial": false,
"IsFinal": false,
"PartialUploads": null,
"Storage": {
"Path": "/opt/deploy/data_drop-off/upload_data/fae477007048c363be15cc0f6757eaf1",
"Type": "filestore"
}
},
"HTTPRequest": {
"Method": "PATCH",
"URI": "/files/fae477007048c363be15cc0f6757eaf1",
"RemoteAddr": "127.0.0.1:37722",
"Header": {
"Accept": [
"/"
],
"Accept-Encoding": [
"gzip, deflate"
],
"Accept-Language": [
"en-US,en;q=0.5"
],
"Connection": [
"upgrade"
],
"Content-Length": [
"243487"
],
"Content-Type": [
"application/offset+octet-stream"
],
"Dnt": [
"1"
],
"Origin": [
"http://localhost:8000"
],
"Referer": [
"http://localhost:8000/drop/08211acd-f899-41da-a9cf-15a2db78bb03"
],
"Tus-Resumable": [
"1.0.0"
],
"Upload-Offset": [
"0"
],
"User-Agent": [
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0"
],
"X-Forwarded-For": [
"127.0.0.1"
],
"X-Forwarded-Host": [
"localhost"
],
"X-Forwarded-Proto": [
"http"
],
"X-Real-Ip": [
"127.0.0.1"
]
}
}
}
'''