updated file limit 10mb for images

This commit is contained in:
bill bittner 2017-07-25 18:49:02 -07:00
parent 7a6b21d3e7
commit 6aff2a5a0a
4 changed files with 28 additions and 8 deletions

View file

@ -1,7 +1,7 @@
/* top bar */ /* top bar */
#logo, #title { #logo, #title {
display: inline-block; float: left;
} }
#logo { #logo {
@ -12,9 +12,18 @@
margin: 2px 5px 2px 5px; margin: 2px 5px 2px 5px;
} }
.top-bar-left {
float: left;
}
.top-bar-tagline {
font-style: italic;
color: grey;
}
.top-bar-right { .top-bar-right {
float: right; vertical-align: text-bottom;
margin-left: 1em; margin-left: 0.5em;
} }
/* publish */ /* publish */

View file

@ -10,6 +10,14 @@
padding-bottom: 2px; padding-bottom: 2px;
border-bottom: 1px lightgrey solid; border-bottom: 1px lightgrey solid;
margin-top: 2em; margin-top: 2em;
overflow: auto;
text-align: right;
display: inline-block;
vertical-align: text-bottom;
}
.full {
clear: both;
} }
.main { .main {

View file

@ -12,13 +12,13 @@ function validateFile(file) {
case 'image/jpeg': case 'image/jpeg':
case 'image/png': case 'image/png':
case 'image/gif': case 'image/gif':
if (file.size > 5000000){ if (file.size > 10000000){
throw new Error('Sorry, images are limitted to 5 megabytes.'); throw new Error('Sorry, images are limited to 10 megabytes.');
} }
break; break;
case 'video/mp4': case 'video/mp4':
if (file.size > 50000000){ if (file.size > 50000000){
throw new Error('Sorry, videos are limitted to 50 megabytes.'); throw new Error('Sorry, videos are limited to 50 megabytes.');
} }
break; break;
default: default:

View file

@ -1,6 +1,9 @@
<div class="top-bar"> <div class="top-bar">
<a href="https://en.wikipedia.org/wiki/Freedom_of_information" target="_blank"><img id="logo" src="/assets/img/content-freedom-64px.png"/></a> <a href="https://en.wikipedia.org/wiki/Freedom_of_information" target="_blank"><img id="logo" src="/assets/img/content-freedom-64px.png"/></a>
<h1 id="title"><a href="/">Spee.ch</a></h1><span >(beta)</span> <h1 id="title"><a href="/">Spee.ch</a></h1><span class="top-bar-left">(beta)</span>
<a href="https://github.com/lbryio/spee.ch" target="_blank" class="top-bar-right">contribute</a> <span class="top-bar-tagline">Open-source, decentralized image and video hosting.</span>
<a href="/about" class="top-bar-right">help</a> <a href="/about" class="top-bar-right">help</a>
<a href="https://github.com/lbryio/spee.ch" target="_blank" class="top-bar-right">contribute</a>
</div> </div>