mirror of
https://github.com/diced/zipline.git
synced 2025-12-25 20:34:31 -08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6270c725dc | ||
|
|
b82a50ae4e | ||
|
|
19d2c63ea9 | ||
|
|
70b5ff7562 | ||
|
|
15367f0495 |
20
README.md
20
README.md
@@ -1,15 +1,15 @@
|
||||
<p align="center"><img src="https://raw.githubusercontent.com/ZiplineProject/zipline/next/public/zipline_small.png"/></p>
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
[](https://discord.gg/AtTSecwqeV)
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
<br>
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
# Zipline
|
||||
The best and only **React + Next.js** ShareX / File Uploader you would ever want.
|
||||
@@ -19,7 +19,7 @@ Wondering how Zipline compares to other popular uploaders? We have done some ben
|
||||
|
||||
| Uploader | Average ms (3 batches/1.5k files) |
|
||||
|-|-|
|
||||
| **[Zipline](https://github.com/dicedtomatoreal/zipline)** | **61 ms** |
|
||||
| **[Zipline](https://github.com/diced/zipline)** | **61 ms** |
|
||||
| [ShareX-Upload-Server](https://github.com/TannerReynolds/ShareX-Upload-Server) | 86 ms |
|
||||
|
||||
*Note: there were 3 batches of 1.5k requests, the average ms of each was averaged again*<br>
|
||||
@@ -35,4 +35,4 @@ Wondering how Zipline compares to other popular uploaders? We have done some ben
|
||||
- Easy setup instructions on [docs](https://zipline.diced.wtf/docs)
|
||||
|
||||
# Installing
|
||||
[See how to install here](https://zipline.diced.wtf/docs/)
|
||||
[See how to install here](https://zipline.diced.wtf/docs/)
|
||||
|
||||
11209
package-lock.json
generated
Normal file
11209
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "zipline-next",
|
||||
"version": "2.5.5",
|
||||
"version": "2.5.8",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@dicedtomato/colors": "^1.0.3",
|
||||
@@ -62,6 +62,7 @@
|
||||
"eslint-plugin-react": "^7.21.3",
|
||||
"mongodb": "^3.6.2",
|
||||
"prettier": "2.1.2",
|
||||
"release": "^6.3.0",
|
||||
"ts-node": "^9.0.0",
|
||||
"typescript": "^4.0.3"
|
||||
}
|
||||
|
||||
@@ -124,11 +124,11 @@ export class RootController {
|
||||
|
||||
if (!existsSync(config.uploader.directory)) mkdirSync(config.uploader.directory);
|
||||
|
||||
const ext = data.filename.split('.')[1];
|
||||
const ext = data.mimetype === 'application/octet-stream' ? 'bin' : data.filename.split('.')[1];
|
||||
if (config.uploader.blacklisted.includes(ext)) return sendError(reply, 'Blacklisted file extension!');
|
||||
|
||||
const fileName = config.uploader.original
|
||||
? data.filename.split('.')[0]
|
||||
? data.filename.split('.').pop()
|
||||
: createRandomId(config.uploader.length);
|
||||
const path = join(config.uploader.directory, `${fileName}.${ext}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user