From 224c8277c4661f36f6833e127308f43f0cafbc22 Mon Sep 17 00:00:00 2001 From: Kyle Drake Date: Sun, 21 Jul 2013 15:06:13 -0400 Subject: [PATCH] add support for HTML manifest --- models/site.rb | 4 ++-- views/site_files/upload.slim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/models/site.rb b/models/site.rb index 5e0e2599..06ce799f 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', '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} + 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', 'text/cache-manifest'] + VALID_EXTENSIONS = %w{ html htm txt text css js jpg jpeg png gif svg md markdown eot ttf woff json geojson csv tsv mf} #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/upload.slim b/views/site_files/upload.slim index ec7246cb..46be1bde 100644 --- a/views/site_files/upload.slim +++ b/views/site_files/upload.slim @@ -61,7 +61,7 @@ javascript: p Files has to be one of the following types: ul id="file_criteria" - li HTML (.html, .htm) + li HTML (.html, .htm, .mf) li Image (.jpg, .png, .gif, .svg) li Markdown (.md, .markdown) li JavaScript (.js, .json, .geojson)