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
Chiefs
ChiefSend2
Commits
8faaf5f0
Commit
8faaf5f0
authored
Mar 26, 2021
by
Lukas Böhm
🎱
Browse files
cleanup
parent
b41b2ed1
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
8faaf5f0
# ChiefSend2
## Requirements:
-
MSSQL or PostreSQL Database
-
NginX or similar webserver
## Installation:
TODO
\ No newline at end of file
ablauf.txt
deleted
100644 → 0
View file @
b41b2ed1
Siehe Postman!!!!!
**********************************************
******* 1. send stuff user selected and get temporary file and share UUID
*********************************************
POST: /api/containers
req: duration=1, password, message, size, download_limit, number of files, captcha, filenames, emails
res:
{
{
"container": {
"UUID": "6e7b2e6e-5c32-43c8-a899-33225ee21f27",
"duration": "1",
"downloadLimit": "20",
"lang": "de_DE",
"source": "ST",
"WSUser": null,
"authorIP": "188.192.241.187",
"swiftVersion": "4",
"createdDate": {
"date": "2021-03-07 20:39:50.667215",
"timezone_type": 3,
"timezone": "Europe/Zurich"
},
"expiredDate": "2021-03-08 20:39:50",
"needPassword": false,
"message": "HALLO NAME",
"numberOfFile": "4"
}
}
uploadHost: ul-gp545fun.swisstransfer.com
{
"filesUUID": [
"92d11732-1fbf-4fef-b83e-aaf73e8e5a54",
"800819b7-357f-48a3-b6c0-1681421fb38c",
"8ac38609-cfcf-4fc1-9645-aa532295c8a6",
"fb4fafd6-0e92-45b2-b396-e0efdc5e72ca"
]
}
}
stat: 201 created
**********************************************
******* (repeat) send files and store them temporarily
*********************************************
OPTIONS xhr: /api/uploadChunk/6e7b2e6e-5c32-43c8-a899-33225ee21f27/800819b7-357f-48a3-b6c0-1681421fb38c/0/1
res: "{\"method\":\"OPTIONS\"}"
stat: 200ok
POST: /api/uploadChunk/6e7b2e6e-5c32-43c8-a899-33225ee21f27/800819b7-357f-48a3-b6c0-1681421fb38c/0/1
stat: 201 created
res: uploadChunksFileDone: 1
**********************************************
******* 3. send upload complete confirmation that locks the upload and moves the stuff from temporary to permanent (starts deletion timer?)
*********************************************
POST: /api/uploadComplete
req:
Content-Disposition: form-data; name="UUID" 6e7b2e6e-5c32-43c8-a899-33225ee21f27
stat: 200 ok
res:
{
"0": {
"linkUUID": "a6407fb3-3b1a-48cf-abb0-edfc043ff683",
"containerUUID": "6e7b2e6e-5c32-43c8-a899-33225ee21f27",
"userEmail": null,
"downloadCounterCredit": 20,
"createdDate": "2021-03-07 20:39:50",
"expiredDate": "2021-03-08 20:39:50",
"isDownloadOnetime": 0,
"isMailSent": 0
}
}
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