increase the limit from 8 files to 20 files
parent
2a83bf207a
commit
8342e8b7c3
|
@ -470,9 +470,9 @@ function handle_files(input, newfiles) {
|
|||
}
|
||||
|
||||
const span = input.previousElementSibling
|
||||
if (input.files.length > 8)
|
||||
if (input.files.length > 20)
|
||||
{
|
||||
alert("You can't upload more than 8 files at one time!")
|
||||
alert("You can't upload more than 20 files at one time!")
|
||||
input.value = null
|
||||
input.parentElement.nextElementSibling.classList.add('d-none');
|
||||
span.innerHTML = ''
|
||||
|
@ -519,9 +519,9 @@ document.onpaste = function(event) {
|
|||
f=document.getElementById('file-upload');
|
||||
f.files += files;
|
||||
|
||||
if (f.files.length > 8)
|
||||
if (f.files.length > 20)
|
||||
{
|
||||
alert("You can't upload more than 8 files at one time!")
|
||||
alert("You can't upload more than 20 files at one time!")
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ def media_ratelimit(v):
|
|||
|
||||
def process_files(files, v, body):
|
||||
if g.is_tor or not files.get("file"): return body
|
||||
files = files.getlist('file')[:8]
|
||||
files = files.getlist('file')[:20]
|
||||
|
||||
if files:
|
||||
media_ratelimit(v)
|
||||
|
@ -236,7 +236,7 @@ def process_dm_images(v, user, body):
|
|||
if not request.files.get("file") or g.is_tor or not get_setting("dm_images"):
|
||||
return body
|
||||
|
||||
files = request.files.getlist('file')[:8]
|
||||
files = request.files.getlist('file')[:20]
|
||||
|
||||
|
||||
for file in files:
|
||||
|
|
|
@ -153,7 +153,7 @@ def comment(v:User):
|
|||
body, _, options, choices = sanitize_poll_options(v, body, False)
|
||||
|
||||
if request.files.get("file") and not g.is_tor:
|
||||
files = request.files.getlist('file')[:8]
|
||||
files = request.files.getlist('file')[:20]
|
||||
|
||||
|
||||
if files:
|
||||
|
|
Loading…
Reference in New Issue