audio-recordings: increase file size to 700MB

This commit is contained in:
Milan
2021-06-27 13:15:51 +02:00
parent 103e27969b
commit ff5fa129ec
3 changed files with 5 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ our $debug = $config->{system}->{debug};
my $base_dir = $config->{locations}->{base_dir}; my $base_dir = $config->{locations}->{base_dir};
my $tempDir = '/var/tmp'; my $tempDir = '/var/tmp';
my $uploadLimit = 400_000_000; my $uploadLimit = 700_000_000;
my %params = (); my %params = ();
my $error = ''; my $error = '';

View File

@@ -18,9 +18,9 @@ function changeFile(fileInput){
var file = fileInput.files[0]; var file = fileInput.files[0];
var size = file.size / (1000*1000); var size = file.size / (1000*1000);
$('#uploadSize').html(size + " MB"); $('#uploadSize').html(size + " MB");
if (size > 400){ if (size > 700){
$('#uploadButton').hide(); $('#uploadButton').hide();
showError("file is too large. maximum size is 400 MB! Please use MP3, 192 kHz, CBR, 44100 Hz, 16bit"); showError("file is too large. maximum size is 700 MB!");
}else{ }else{
$('#uploadButton').show(); $('#uploadButton').show();
} }

View File

@@ -34,8 +34,8 @@
<tr> <tr>
<td>Datei</td> <td>Datei</td>
<td><input type="file" id="file" name="upload" size="20" accept="audio/*" maxlength="2000000000" /></td> <td><input type="file" id="file" name="upload" size="20" /></td>
<!-- accept="audio/*" maxlength="2000000000" -->
<td colspan="2" style="text-align:right;padding-right:0.5em;" id="uploadSize"></td> <td colspan="2" style="text-align:right;padding-right:0.5em;" id="uploadSize"></td>
<td colspan="2" style="text-align:right;padding-right:0.5em;" > <td colspan="2" style="text-align:right;padding-right:0.5em;" >