fix: file size bug, upload bug
This commit is contained in:
parent
fae93d99e0
commit
0080e9b4cd
@ -105,7 +105,7 @@ access_address = http://127.0.0.1:8181
|
|||||||
flask_secret = ChangeThisPassword
|
flask_secret = ChangeThisPassword
|
||||||
|
|
||||||
upload_enabled = True
|
upload_enabled = True
|
||||||
maximum_upload_file_size = 30M
|
max_upload_file_size = 30M
|
||||||
|
|
||||||
[debug]
|
[debug]
|
||||||
# Set ffmpeg to True if you want to display DEBUG level log of ffmpeg.
|
# Set ffmpeg to True if you want to display DEBUG level log of ffmpeg.
|
||||||
|
@ -143,7 +143,7 @@ port = 64738
|
|||||||
# 'upload_enabled': Enable the upload function of the web interface.
|
# 'upload_enabled': Enable the upload function of the web interface.
|
||||||
# 'maximum_upload_file_size': Unit can be 'B', 'KB', 'MB', 'GB', 'TB'.
|
# 'maximum_upload_file_size': Unit can be 'B', 'KB', 'MB', 'GB', 'TB'.
|
||||||
#upload_enabled = True
|
#upload_enabled = True
|
||||||
#maximum_upload_file_size = 30MB
|
#max_upload_file_size = 30MB
|
||||||
|
|
||||||
# [debug] stores some debug settings.
|
# [debug] stores some debug settings.
|
||||||
[debug]
|
[debug]
|
||||||
|
@ -328,8 +328,11 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if upload_enabled %}
|
{% if upload_enabled %}
|
||||||
|
|
||||||
<div id="upload" class="container mb-3">
|
<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">
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h5 class="card-title">Upload File</h5>
|
<h5 class="card-title">Upload File</h5>
|
||||||
@ -375,8 +378,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div class="container mb-5">
|
<div class="container mb-5">
|
||||||
<div class="card-deck">
|
<div class="card-deck">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user