2DU před 9 roky
rodič
revize
80f091c389
2 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 1 1
      app.py
  2. 1 0
      templates/index.html

+ 1 - 1
app.py

@@ -509,7 +509,7 @@ def upload():
         if(ban == 1):
             return '<meta http-equiv="refresh" content="0;url=/ban" />'
         else:
-            return render_template('index.html', logo = data['name'], title = '업로드', tn = 21)
+            return render_template('index.html', logo = data['name'], title = '업로드', tn = 21, number = data['upload'])
     
 @app.route('/image/<name>')
 def image(name = None):

+ 1 - 0
templates/index.html

@@ -471,6 +471,7 @@
                     <input type=submit value=Upload>
                 </form>
 			</div>
+            <span>{{number}}MB 이하 파일만 업로드 가능하고 jpg png gif jpeg만 가능 합니다.</span>
             {% elif tn == 22 %}
 			<h1 class="title">{{title}}</h1>
 			<table style="width: 100%;">