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
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ This will install `http-server-upload` globally so that it may be run from the c
24
24
## Usage
25
25
26
26
```
27
-
http-server-upload [options] [uploadRootPath]
27
+
http-server-upload [arguments] [uploadRootPath]
28
28
```
29
29
30
30
`[uploadRootPath]` defaults to the current working directory (`./`).
@@ -39,7 +39,7 @@ until the next free port is found. This can be disabled, see below.
39
39
*Attention:* Already existing files will be overwritten on upload.
40
40
41
41
42
-
### Options and environment variables
42
+
### Arguments and environment variables
43
43
44
44
The optional configuration is done by command line arguments or environment variables.
45
45
If both are used, the arguments have higher priority and the value from the
@@ -48,12 +48,13 @@ corresponding environment variable will be ignored.
48
48
| Argument | Variable | Description | Default |
49
49
|---|---|---|---|
50
50
|`--port`|`PORT`| The port to use. |`8080`|
51
-
|`--upload-dir`|`UPLOAD_DIR`| The directory where the files should be uploaded to. This overrides the `uploadRootPath` argument. |`uploadRootPath` argument or the current working directory |
51
+
|`--upload-dir`|`UPLOAD_DIR`| The directory where the files should be uploaded to. This overrides the `uploadRootPath` argument. |`uploadRootPath` argument or the current working directory |
52
52
|`--upload-tmp-dir`|`UPLOAD_TMP_DIR`| Temp directory for the file upload. | The upload directory. |
53
53
|`--max-file-size`|`MAX_FILE_SIZE`| The maximum allowed file size for uploads in Megabyte. |`200`|
54
54
|`--token`|`TOKEN`| An optional token which must be provided on upload. | Nothing |
55
55
|`--path-regexp`|`PATH_REGEXP`| A regular expression to verify a given upload path. This should be set with care, because it may allow write access to outside the upload directory. |`/^[a-zA-Z0-9-_/]*$/`|
56
56
|`--disable-auto-port`|`DISABLE_AUTO_PORT`| Disable automatic port increase if the port is nor available. | Not set. |
0 commit comments