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
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ A tiny, self-hosted upload target for ShareX and similar clients. Runs on Node.j
11
11
12
12
## Quickstart
13
13
14
-
### Docker is the recommended way to run ShareX-Server! (see[Docker Hub](https://hub.docker.com/r/alexthemaster/sharex-server)).
14
+
### 🐳 Docker is the recommended way to run Sh ShareX-Server! See[Docker Hub](https://hub.docker.com/r/alexthemaster/sharex-server) for setup instructions.
15
15
16
16
#### Manually in your Node app:
17
17
@@ -21,7 +21,7 @@ A tiny, self-hosted upload target for ShareX and similar clients. Runs on Node.j
@@ -91,8 +91,8 @@ curl -X POST "http://localhost:8080/api/upload" \
91
91
92
92
## Upload handling and filename strategy
93
93
94
-
- Filenames are generated as: `${nanoid(this.filenameLength)}.${mimeSubtype}` where `mimeSubtype` is taken from the uploaded file's `mimetype.split("/")[1]`.
95
-
- A collision safeguard checks whether a file with the generated name already exists and regenerates once if necessary. The probability of collision is extremely low with `nanoid`.
94
+
- Filenames are generated as: `${nanoid(this.filenameLength)}.{ext}` where `ext` is the uploaded file's original extension.
95
+
- A collision safeguard checks whether a file with the generated name already exists and regenerates once if necessary. The probability of collision is [extremely low](https://zelark.github.io/nano-id-cc/) with `nanoid`.
0 commit comments