Skip to content

Commit 27be625

Browse files
authored
Update README.md
import Document Again
1 parent fbaddb2 commit 27be625

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## A file Server base on nginx.
22

33
### Describe
4-
This is a file-server base on nginx-upload-module.
4+
This is a file-server base on nginx-upload-module、nginx-lua-module、lua、resty-http-module.
55

66
- Features:
77
- Support storage file with custom path.
@@ -14,6 +14,10 @@ This is a file-server base on nginx-upload-module.
1414
3. chmod +x upload.sh
1515
4. ./upload.sh
1616

17+
- Note
18+
19+
file-server base on nginx, the deafult port is *8090*. check the nginx whether has been installed before install file-server. if has been installed, suggest uninstall the old nginx.
20+
1721
### Document
1822
---
1923
- FrontEnd
@@ -76,4 +80,15 @@ This is a file-server base on nginx-upload-module.
7680
backend handle program will receive these params after fileServer trriger a http request.
7781

7882
remove API will receive some custom params.
83+
84+
-Note:
85+
86+
If the backend handle program execution success, you should return the JSON format result. And the fileServer will judge whether clean(rollback)the upload file or remove file base on the JSON format result.
87+
88+
Success: {code:0, msg:'custom by yourself'}
89+
90+
Failed: {code:-1, msg:'custom by yourself'}
91+
92+
you should catch the Error, And return Failed JSON format result.
93+
7994

0 commit comments

Comments
 (0)