Thomas Lynch
18ab7d24ee
When strict mime validation is enabled, actually tell the user what the server thinks the mime is in the mismatch error message.
...
note: only for making posts (for now), pending a refactor of some checks that are shared and duplicated between other file upload models e.g. banners/asset
2 years ago
Thomas Lynch
bb582c2de8
"helpers" -> "lib
...
god help anybody who gets serious merge conflicts from this
close #434
2 years ago
Thomas Lynch
4f525b6613
move, rename, reorganise "helpers" => "lib"
2 years ago
Thomas Lynch
bbd06b31af
damn spaniards
3 years ago
Thomas Lynch
de8dcbb8be
progress on model, controller and the template
...
improve some helpers to load config properly on global config change including renderlocals, themes, etc
4 years ago
Thomas Lynch
ab8eddbcff
buggfixes
4 years ago
Thomas Lynch
1c5f14e419
This did not go as planned
4 years ago
Thomas Lynch
44f69b8ba5
start per-board custom pages, mostly working could just use a lil more testing references #232
4 years ago
some random guy
b110dac7ba
support flac audio
4 years ago
Thomas Lynch
24574862a2
Add file-type moodule to check file mime types strictly, with 2 optiosn in config about it
...
Update express-fileupload dependency to clean tempfiles on numFilesLimitHandler
Add a proper error message for max num files instead of allowing unlimited and limiting in board post method
4 years ago
fatchan
4032e6a214
allow custom mime types for file uploads defined in config
5 years ago
fatchan
a5e7349c28
file upload form changes for clipboard/drag+drop, and make it work on the banners upload page
5 years ago
fatchan
632811c636
support audio files and a few more video files
5 years ago
fatchan
686fe0d7b3
add board configuration for allowed file types
5 years ago
fatchan
c7d02a5a2b
temp files _actually_ deleted for uploads, still need a little refactor. also remove hyphen from filenames
5 years ago
fatchan
d178c28540
allow .mov and fix video resolution -- filter streams to only video
5 years ago
fatchan
476cf5c2a9
always thumbnail animated images to prevent large filesize by small dimension gifs not being thumbnailed
5 years ago
fatchan
a818a25e91
generate and save html to disk. actions that would cause a page to change delete the html. on the next visit, nginx will try_files, else pass to the backend which will generate the page again. CURRENTLY DOES NOT SUPPORT POST ACTIONS e.g. deletes, spoiler, sticky, etc will not cause pages to be deleted for future rebuilding. thats coming in next commits. consider this the start of actual smart building strategy to prevent templating and db hits unnecessarily. where its possible to serve a plain html page, we will do so.
5 years ago
fatchan
92f8e993d9
banner uploads. no listing or deleting yet. gotta sleep
5 years ago
fatchan
e90847b0a4
early video support with thumbnailing
6 years ago
fatchan
9afa0a65cc
refactor
6 years ago
fatchan
8002569954
refactor file upload, mroe helpers and get image meta data
6 years ago
fatchan
ff1d5e5fe7
file upload with size, number and types, csrf tokens added to posting
6 years ago
fatchan
2a2f00e606
sv
6 years ago