fix: file size bug, upload bug

This commit is contained in:
Terry Geng 2020-05-19 09:23:19 +08:00
parent fae93d99e0
commit 0080e9b4cd
No known key found for this signature in database
GPG Key ID: F982F8EA1DF720E7
3 changed files with 6 additions and 5 deletions

View File

@ -105,7 +105,7 @@ access_address = http://127.0.0.1:8181
flask_secret = ChangeThisPassword
upload_enabled = True
maximum_upload_file_size = 30M
max_upload_file_size = 30M
[debug]
# Set ffmpeg to True if you want to display DEBUG level log of ffmpeg.

View File

@ -143,7 +143,7 @@ port = 64738
# 'upload_enabled': Enable the upload function of the web interface.
# 'maximum_upload_file_size': Unit can be 'B', 'KB', 'MB', 'GB', 'TB'.
#upload_enabled = True
#maximum_upload_file_size = 30MB
#max_upload_file_size = 30MB
# [debug] stores some debug settings.
[debug]

View File

@ -328,8 +328,11 @@
</div>
{% if upload_enabled %}
<div id="upload" class="container mb-3">
{% else %}
<div id="upload" class="container mb-3" style="display: none;">
<input type="hidden" id="uploadDisabled" value="true" />
{% endif %}
<div class="card">
<div class="card-header">
<h5 class="card-title">Upload File</h5>
@ -375,8 +378,6 @@
</div>
</div>
{% endif %}
<div class="container mb-5">
<div class="card-deck">
<div class="card">