mutantmonkey
f0e71325c4
Merge branch 'master' into csp
10 years ago
andreimarcu
3e2537ca68
Get rid of ace editor
10 years ago
mutantmonkey
44172ec98a
clean up HTML, CSS, and JavaScript for CSP
In order to implement Content-Security-Policy, the inlined style, event
handlers, and scripts all have to go. This commit completes this work.
10 years ago
andreimarcu
1e1c8caa53
Add /favicon.ico route
10 years ago
andreimarcu
d40803f165
More verbose errors
10 years ago
mutantmonkey
84f38026eb
do some more HTML and JS cleanup
10 years ago
mutantmonkey
b83f11e80a
remove inline js on pastebin pages
10 years ago
andreimarcu
335517bf17
Update upload.js with 200 status for delete
10 years ago
andreimarcu
7f2db43108
DELETE requests respond with 200 on successful deletes
10 years ago
andreimarcu
adf77c642f
Added basic build script
10 years ago
andreimarcu
64034a74a6
Merge branch 'mutantmonkey-no_css_in_js'
10 years ago
mutantmonkey
f216b06df5
remove most of CSS from JavaScript
The uploadElement is probably going to have to stay, unfortunately, but
the rest is gone.
10 years ago
Andrei Marcu
5fa994771f
Merge pull request #24 from mutantmonkey/torrent_fixup
change CreateTorrent to createTorrent
10 years ago
andreimarcu
5aa8ed011f
Merge branch 'mutantmonkey-safeuris'
10 years ago
mutantmonkey
199289a58d
change CreateTorrent to createTorrent
After some discussion, I decided it was probably best to not export this
after all.
10 years ago
mutantmonkey
98106ec74f
use better random for URLs and delete keys
Using a PRNG seeded based on only the time for these is a bad idea as
the output is predictable. Instead, use a package that generates random
strings using go's crypo/rand package to provide cryptographically
secure random URLs and delete keys.
10 years ago
andreimarcu
8f7b47f572
Support remote uploads
10 years ago
andreimarcu
9cd20c81fc
This is not the commit you are looking for
10 years ago
andreimarcu
c339a8c770
Highlight dropzone when dragging
10 years ago
andreimarcu
e3dbbd1b11
Fix typo
10 years ago
andreimarcu
61e1661dde
Fix small file uploads
10 years ago
andreimarcu
52cc3b4dff
Add fastcgi support and static cache headers
10 years ago
andreimarcu
6a227d15a2
Reorder navigation
10 years ago
andreimarcu
fcb9afde0d
Pass randomize and expires in upload
10 years ago
andreimarcu
31359499ac
Switch to dropzonejs. Fixes #18
10 years ago
andreimarcu
ba73f4adf3
Fix static directory listing recursion
10 years ago
andreimarcu
d55cf33a5d
Add support for pastebin display
10 years ago
Andrei Marcu
3bf7c88cc8
Merge pull request #16 from Uncurlhalo/fix-512-byte-files
Add a check to see if we already hit EOF on Read
10 years ago
Jacob Melton
c22e314d80
Add a check to see if we already hit EOF on Read
10 years ago
andreimarcu
8a1b688b3c
Remove error
10 years ago
andreimarcu
2f5bf2cd65
Added pasteHandler and paste upload
10 years ago
andreimarcu
fd75607652
Added /paste/
10 years ago
andreimarcu
751de1d176
Merge branch 'mutantmonkey-torrent'
10 years ago
andreimarcu
5b91993677
Add torrent generation
10 years ago
andreimarcu
0efcbbb480
Requesting display url with accept json. Fixes #9
10 years ago
mutantmonkey
31aa0d666b
add torrent test for binary data
10 years ago
mutantmonkey
baca561f06
fix torrent creation for binary data and refactor
10 years ago
andreimarcu
2565e85445
Who uses .jpeg anymore?
10 years ago
andreimarcu
cf39a98cdd
Formatting
10 years ago
Andrei Marcu
f1135085c2
Merge pull request #14 from Uncurlhalo/add-mime-detection
Assign extention based on mimetype if empty extension
10 years ago
Jacob Melton
2ef8546864
Add basic MIME detection support
10 years ago
andreimarcu
22818d86ce
Implement hotlink protection
10 years ago
andreimarcu
02f86da3c7
Display expiry and size info
10 years ago
mutantmonkey
df09b005de
use oopsHandler instead of panicking on error
10 years ago
mutantmonkey
b81477c1d3
fix go vet complaint in torrent_test.go
10 years ago
mutantmonkey
091225b9e4
add torrent support
This change adds an option to download files with BitTorrent. A webseed
is provided in the torrent file to bootstrap the swarm.
10 years ago
andreimarcu
0caadefa06
No need for sudo since we got rid of that library
10 years ago
andreimarcu
738bf25f44
Test deletion key
10 years ago
Andrei Marcu
c7e679039a
Merge pull request #12 from matthazinski/delete
Add delete method
10 years ago
Matt Hazinski
1064db8577
Remove image from 401 page
10 years ago