diff --git a/models/site.rb b/models/site.rb index 5115b998..3ebc7f92 100644 --- a/models/site.rb +++ b/models/site.rb @@ -1,7 +1,7 @@ class Site < Sequel::Model # We might need to include fonts in here.. - VALID_MIME_TYPES = ['text/plain', 'text/html', 'text/css', 'application/javascript', 'image/png', 'image/jpeg', 'image/gif', 'image/svg+xml', 'application/vnd.ms-fontobject', 'application/x-font-ttf', 'application/octet-stream'] - VALID_EXTENSIONS = %w{ html htm txt text css js jpg jpeg png gif svg md markdown eot ttf woff json} + VALID_MIME_TYPES = ['text/plain', 'text/html', 'text/css', 'application/javascript', 'image/png', 'image/jpeg', 'image/gif', 'image/svg+xml', 'application/vnd.ms-fontobject', 'application/x-font-ttf', 'application/octet-stream', 'text/csv', 'text/tsv'] + VALID_EXTENSIONS = %w{ html htm txt text css js jpg jpeg png gif svg md markdown eot ttf woff json geojson csv tsv} #USERNAME_SHITLIST = %w{ payment secure login signin www ww web } # I thought they were funny personally, but everybody is freaking out so.. MAX_SPACE = (5242880*2) # 10MB MINIMUM_PASSWORD_LENGTH = 5 diff --git a/views/site_files/new.slim b/views/site_files/new.slim index aab77438..1e4ab474 100644 --- a/views/site_files/new.slim +++ b/views/site_files/new.slim @@ -27,9 +27,9 @@ li HTML (.html, .htm) li Image (.jpg, .png, .gif, .svg) li Markdown (.md, .markdown) - li JavaScript (.js, .json) + li JavaScript (.js, .json, .geojson) li CSS (.css) - li Text (.txt, .text) + li Text (.txt, .text, .csv, .tsv) li Web Fonts (.eot, .ttf, .woff, .svg) h4 If the file already exists, it will be overwritten without warning.