Commit graph

20 commits

Author SHA1 Message Date
Joe Ma
5cef3755b3
Populate original file name
Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-10-15 15:12:16 +08:00
Joe Ma
1bf8f08ee6
Add custom file title
Remove redundant API_SPEC_TEXT

Update paste.html formatting style

Fix bugs

Fix typo

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-10-15 13:56:31 +08:00
Joe Ma
3562fe2d24
Update paste info formatting
Update paste.html style

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-10-13 01:32:29 +08:00
Joe Ma
3c900bc92a
Add a control to toggle URL redirection to paste.html
Update README.md

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-10-13 01:30:56 +08:00
Joe Ma
5404d3055b
Fix typo 2022-09-28 16:10:41 +08:00
Joe Ma
ef9b6e7334
Fix typo 2022-09-14 01:41:55 +08:00
Joe Ma
bd26de1a67
Fix typo 2022-09-12 12:42:20 +08:00
Joe Ma
9c72be7133
Add content type preview to paste.html 2022-09-12 12:36:45 +08:00
Joe Ma
022f83a387
Use HTML page instead for browser and plain text for console 2022-09-11 23:38:46 +08:00
Joe Ma
fb3f8d1ef1
Add support to generate QR code for paste link 2022-09-11 19:05:18 +08:00
Joe Ma
78e6707b4b
Auto remove expire key if paste object expired
Remove mime-types library
2022-08-19 00:59:28 +08:00
Joe Ma
0c6a9a8770
Fix bug in file size check in frontpage
Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-06-07 23:25:10 +08:00
Joe Ma
0267524dad
Fix typo
Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-06-05 18:31:14 +08:00
Joe Ma
d1c43280d5
Add description text and file size check to paste.html
Add x-pass header to authentication method

Add size to paste info

Prefix the custom header key with x-

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-06-05 16:01:03 +08:00
Joe Ma
78806e331d
Update paste.html to allow password and read limit settings
Handle empty form data and header values

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-06-04 16:08:06 +08:00
Joe Ma
7c4aacd952
Minor improvement
Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-06-03 13:30:57 +08:00
Joe Ma
1ec2a9f7f0
Add Content-Type header to response
Support auto-detection of MIME types based on filename extension

Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-06-03 01:49:19 +08:00
Joe Ma
c9e3376d21
Enable Cloudflare cache
Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-06-02 14:13:54 +08:00
Joe Ma
29a6da681e
Remove redundant CSP header
Signed-off-by: Joe Ma <rikkaneko23@gmail.com>
2022-06-02 12:02:20 +08:00
Joe Ma
80e8aec857
Add support to create paste from HTTP form
Add paste.html

Add support to direct download paste

Change the default UUID length to 4

Add copyright notice
2022-06-02 01:31:56 +08:00