Browse Source

make uploading of a 1GB possible

pull/11/head
crunk 3 weeks ago
parent
commit
1cf75379b2
  1. 2
      verse/app.py
  2. 2
      verse/distribusiworkflow.py
  3. 3
      verse/forms/uploadform.py
  4. 12
      verse/static/css/style.css

2
verse/app.py

@ -19,7 +19,7 @@ def create_app():
APP.secret_key = "secret-key"
APP.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///distribusiverse.db"
APP.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = True
APP.config["MAX_CONTENT_LENGTH"] = 150 * 1024 * 1024
APP.config["MAX_CONTENT_LENGTH"] = 1024 * 1024 * 1024
APP.config["MAIL_SERVER"] = "mail.autonomic.zone"
APP.config["MAIL_PORT"] = 587

2
verse/distribusiworkflow.py

@ -89,7 +89,7 @@ def GetCssFile(distribusi):
def RunDistribusi(userfolder, cssfile):
parser = build_argparser()
args = parser.parse_args(["--menu-with-index", "-s", cssfile])
args = parser.parse_args(["-t", "--menu-with-index", "-s", cssfile])
distribusify(args, userfolder)

3
verse/forms/uploadform.py

@ -56,6 +56,7 @@ class UploadForm(FlaskForm):
option_widget=None,
validators=[DataRequired()],
)
tags = StringField(
"Add tags, seperated by commas. No need for the '#' sign:",
validators=[validators.InputRequired(), Length(2, 500)],
@ -67,7 +68,7 @@ class UploadForm(FlaskForm):
FileAllowed(["zip"], "Zip archives only!"),
FileRequired(),
FileSize(
max_size=104857600,
max_size=1073741824,
message="Zipfile size must be smaller than 100MB",
),
],

12
verse/static/css/style.css

@ -2,8 +2,8 @@ body
{
font-family: monospace, monospace;
font-size: 15px;
background-color: #272a33;
color:#E0B0FF;
background-color: #fdfdfd;
color:#29d148;
word-wrap: break-word;
line-height: 1.1;
}
@ -12,7 +12,7 @@ div#login{
width: 30%;
margin-left: auto;
margin-right: auto;
background-color:#272a33;
background-color:#fdfdfd;
text-decoration: none;
}
@ -24,10 +24,10 @@ div#login form {
}
input[type=text], input[type=password], input[type=file] {
color: white;
color: #C397DF;
width: 18em;
max-width: 18em;
background-color: #2D3039;
background-color: #fdfdfd;
border: 1px solid #E0B0FF;
}
@ -41,7 +41,7 @@ div#upload form {
padding-left: auto;
padding-right: auto;
width: 31em;
background-color:#30333f;
background-color:#fdfdfd;
text-decoration: none;
scroll-behavior: smooth;
border-style: outset;

Loading…
Cancel
Save