Sfoglia il codice sorgente

업로드 임시 비 활성화

2DU 8 anni fa
parent
commit
b70089d36e
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 2 1
      app.py
  2. 1 1
      views/upload.tpl

+ 2 - 1
app.py

@@ -1742,7 +1742,6 @@ def other():
                     <h2>기타</h2> \
                     <li><a href="/titleindex">모든 문서</a></li> \
                     <li><a href="/acllist">ACL 문서 목록</a></li> \
-                    <li><a href="/upload">업로드</a></li> \
                     <li><a href="/adminlist">관리자 목록</a></li> \
                     <li><a href="/manager/1">관리자 메뉴</a></li> \
                     <br> \
@@ -3514,6 +3513,7 @@ def custom_css():
             )
         )
 
+'''
 @route('/upload', method=['GET', 'POST'])
 def upload():
     conn = pymysql.connect(
@@ -3593,6 +3593,7 @@ def upload():
                 number = set_data['upload']
             )
         )
+'''
     
 @route('/count')
 def count_edit():

+ 1 - 1
views/upload.tpl

@@ -11,7 +11,7 @@
 <h1 class="title">
     {{title}}
 </h1>
-<form id="usrform" action="/upload" method="POST">
+<form id="usrform" action="/upload" method="POST" enctype="multipart/form-data">
     <input class="form-control input-sm" type="file" name="file"> <button class="btn btn-primary" type="submit">업로드</button>
     <br>
     <br>