mutantmonkey
f54264c47c
Improve UI a bit
* Remove right margin from expiration dropdown on index
* Use flexbox for bin/story display
* Move Paste/Save button after expire dropdown, instead of before
6 years ago
mutantmonkey
f46b61399b
Fix broken page when file is missing ( #160 )
With the localfs backend, it's possible for a file to be removed but its
metadata file to remain intact. In this case, viewing the selif URL for
that file would return a broken page with two error pages stacked on top
of each other. This changes fixes that by replacing the output in that
case with a single "Unable to open file." error message.
6 years ago
Andrei Marcu
cde964ffe0
Hide filename input when force random is on
6 years ago
mutantmonkey
8f3108148b
Add option to force random filenames ( fixes #86 ) ( #159 )
6 years ago
Andrei Marcu
a79bc1898a
Add binaries/ to .gitignore
6 years ago
mutantmonkey
5037573eab
Clean up build.sh and build for linux/arm64 ( #158 )
* Clean up build.sh and build for linux/arm64
6 years ago
Andrei Marcu
d5aa09a65c
Update screenshots in readme
6 years ago
Andrei Marcu
f6cd7fc6fe
Tweak documentation
6 years ago
mutantmonkey
207c19e3df
Add -s3-force-path-style flag and config option ( #157 )
This option forces path-style addressing instead of using a subdomain.
This appears to be needed by Minio.
6 years ago
Andrei Marcu
35c4415f8d
Document storage backend usage
6 years ago
mutantmonkey
5d9a93b1e2
Add S3 backend ( #156 )
6 years ago
Thomas Sänger
0fb5fa1c51
use sha256-simd ( #155 )
6 years ago
Andrei Marcu
b731e17c1e
Cosmetic tweaks & fixes
6 years ago
Simon Alfassa
fd0f3d9e46
Make the web page mobile friendly
7 years ago
mutantmonkey
5340f23f4d
Add new multi-stage slim Dockerfile ( #154 )
6 years ago
Andrei Marcu
9d7f698c70
Add direct_url info to API page
6 years ago
Andrei Marcu
e506304b84
Return direct URL in json responses
6 years ago
Andrei Marcu
1fb92ffce3
Fix bug where using curl with json headers would return the file instead
6 years ago
Andrei Marcu
c746f70c10
Allow changing the "selif" path name
6 years ago
Benjamin Neff
6290f408ff
Allow to paste images ( #153 )
dropzone.js doesn't support pasting itself yet, so adding it externally
and calling `.addFile()` to upload the pasted image.
Fixes #130
6 years ago
mutantmonkey
5f4f16e08b
Add file ETag support ( fix #138 ) ( #152 )
6 years ago
mutantmonkey
10938a3e0b
Remove Google URL shortener ( fix #146 ) ( #150 )
6 years ago
mutantmonkey
bad7d2666e
Switch to Referrer-Policy header ( #149 )
Use of the Content-Security-Policy header to specify a referrer policy
was deprecated in favor of a [new
header](fc55d917be
).
This change changes the existing referrer policy directives to use this
header and adds corresponding config options/command line flags.
6 years ago
Andrei Marcu
19a95e36a6
Fix Travis parsing of 1.10 as 1.1
6 years ago
Andrei Marcu
f19247a790
Update Travis to 1.10 and 1.11
6 years ago
Thor77
5d8a0ef605
Serve file directly for curl and wget user agents ( #145 )
* Serve file directly for curl and wget user agents
Fix #127
* Add test for get with wget user agent
* Add -nodirectagents flag
to disable serving files directly for wget/curl user agents
* Fix TestPutAndGetCLI failing for Go 1.5
It failed because it doesn't include the Content-Type header for every
response.
6 years ago
Andrei Marcu
7c024d9aab
Merge pull request #141 from bruj0/patch-1
Fix files and meta permissions
7 years ago
Rodrigo D. L
b82371250a
Fix files and meta permissions
When running under docker-compose the volume changes the permissions by default to root but its avoided if the directory where it is mounted is created first with the correct owner.
7 years ago
Andrei Marcu
4fa6423a85
Merge pull request #137 from mutantmonkey/issue_136
Fix -nologs on linx-cleanup tool (closes #136 )
7 years ago
mutantmonkey
c015b5f1da
Fix -nologs on linx-cleanup tool ( closes #136 )
7 years ago
andreimarcu
e86f19ecb1
Add linx-cleanup to build script
7 years ago
Andrei Marcu
ceea32de6b
Merge pull request #124 from mutantmonkey/cleanup_tool
Add linx-cleanup tool
8 years ago
mutantmonkey
a69aa95a87
Add `linx-cleanup` info to readme
8 years ago
mutantmonkey
32b537a057
Add missing `flag.Parse()` call
8 years ago
mutantmonkey
c6f62fccdf
Drop Mercurial from Dockerfile
We no longer have any Mercurial dependencies, so we don't need to
install it anymore.
8 years ago
mutantmonkey
b7fadd9676
Add linx-cleanup tool
This doesn't completely fix #116 , but it makes setting up a cron job to
do cleanup much more pleasant.
8 years ago
Andrei Marcu
d8568e141f
Merge pull request #121 from mutantmonkey/remove_mime_extension_map
Remove mime type to extension map from util.go
8 years ago
mutantmonkey
bb7f7a1774
Remove mime type to extension map from util.go
This is no longer used, so it can be removed.
8 years ago
andreimarcu
37f9a0cbbc
Change unknown extension from .ext to .file
8 years ago
Andrei Marcu
1c1d3127ab
Merge pull request #120 from mutantmonkey/switch_to_filetype
Switch to https://github.com/h2non/filetype
8 years ago
mutantmonkey
e6ac89d6dc
Switch to https://github.com/h2non/filetype
This library is much better at detecting MIME types properly than the
existing one. Fixes #117 .
8 years ago
Andrei Marcu
e588d78299
Merge pull request #112 from mutantmonkey/issue_111
Fix max expiry when provided expiry is 0
8 years ago
mutantmonkey
647aa2c0f6
Fix max expiry when provided expiry is 0
Previously, we did not properly handle the case where the provided
expiry was zero and the max expiry was configured to be nonzero; add an
additional check to cover this case.
Fixes #111 .
8 years ago
Andrei Marcu
0e768cc6f4
Merge pull request #109 from culdev/master
Fix file upload for Internet Explorer
8 years ago
culdev
8f384dc5ce
Use value instead of selectedOptions.
8 years ago
Andrei Marcu
e9ae7a794f
Merge pull request #105 from Thor77/systemd-service
Add Install-section to systemd-service
8 years ago
Thor77
c75cd5ef9e
Add Install-section to systemd-service
8 years ago
andreimarcu
eb036f2819
Fix typo
8 years ago
Andrei Marcu
29d3157a03
Merge pull request #102 from mutantmonkey/maxexpiry
Add option for maximum expiration time (fixes #99 )
8 years ago
mutantmonkey
fef43d856e
Add option for maximum expiration time ( fixes #99 )
8 years ago