2DU 9 년 전
부모
커밋
80f091c389
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app.py
  2. 1 0
      templates/index.html

+ 1 - 1
app.py

@@ -509,7 +509,7 @@ def upload():
         if(ban == 1):
         if(ban == 1):
             return '<meta http-equiv="refresh" content="0;url=/ban" />'
             return '<meta http-equiv="refresh" content="0;url=/ban" />'
         else:
         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>')
 @app.route('/image/<name>')
 def image(name = None):
 def image(name = None):

+ 1 - 0
templates/index.html

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