updated file limit 10mb for images
This commit is contained in:
parent
7a6b21d3e7
commit
6aff2a5a0a
4 changed files with 28 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
|
||||
/* top bar */
|
||||
#logo, #title {
|
||||
display: inline-block;
|
||||
float: left;
|
||||
}
|
||||
|
||||
#logo {
|
||||
|
@ -12,9 +12,18 @@
|
|||
margin: 2px 5px 2px 5px;
|
||||
}
|
||||
|
||||
.top-bar-left {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.top-bar-tagline {
|
||||
font-style: italic;
|
||||
color: grey;
|
||||
}
|
||||
|
||||
.top-bar-right {
|
||||
float: right;
|
||||
margin-left: 1em;
|
||||
vertical-align: text-bottom;
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
/* publish */
|
||||
|
|
|
@ -10,6 +10,14 @@
|
|||
padding-bottom: 2px;
|
||||
border-bottom: 1px lightgrey solid;
|
||||
margin-top: 2em;
|
||||
overflow: auto;
|
||||
text-align: right;
|
||||
display: inline-block;
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
.full {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.main {
|
||||
|
|
|
@ -12,13 +12,13 @@ function validateFile(file) {
|
|||
case 'image/jpeg':
|
||||
case 'image/png':
|
||||
case 'image/gif':
|
||||
if (file.size > 5000000){
|
||||
throw new Error('Sorry, images are limitted to 5 megabytes.');
|
||||
if (file.size > 10000000){
|
||||
throw new Error('Sorry, images are limited to 10 megabytes.');
|
||||
}
|
||||
break;
|
||||
case 'video/mp4':
|
||||
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;
|
||||
default:
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
<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>
|
||||
<h1 id="title"><a href="/">Spee.ch</a></h1><span >(beta)</span>
|
||||
<a href="https://github.com/lbryio/spee.ch" target="_blank" class="top-bar-right">contribute</a>
|
||||
<h1 id="title"><a href="/">Spee.ch</a></h1><span class="top-bar-left">(beta)</span>
|
||||
<span class="top-bar-tagline">Open-source, decentralized image and video hosting.</span>
|
||||
<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>
|
Loading…
Reference in a new issue