You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
## A file Server base on nginx.
2
2
3
3
### 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.
5
5
6
6
- Features:
7
7
- Support storage file with custom path.
@@ -14,6 +14,10 @@ This is a file-server base on nginx-upload-module.
14
14
3. chmod +x upload.sh
15
15
4. ./upload.sh
16
16
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
+
17
21
### Document
18
22
---
19
23
- FrontEnd
@@ -76,4 +80,15 @@ This is a file-server base on nginx-upload-module.
76
80
backend handle program will receive these params after fileServer trriger a http request.
77
81
78
82
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.
0 commit comments