audio-recordings: increase file size to 700MB
This commit is contained in:
@@ -35,7 +35,7 @@ our $debug = $config->{system}->{debug};
|
||||
my $base_dir = $config->{locations}->{base_dir};
|
||||
|
||||
my $tempDir = '/var/tmp';
|
||||
my $uploadLimit = 400_000_000;
|
||||
my $uploadLimit = 700_000_000;
|
||||
|
||||
my %params = ();
|
||||
my $error = '';
|
||||
|
||||
@@ -18,9 +18,9 @@ function changeFile(fileInput){
|
||||
var file = fileInput.files[0];
|
||||
var size = file.size / (1000*1000);
|
||||
$('#uploadSize').html(size + " MB");
|
||||
if (size > 400){
|
||||
if (size > 700){
|
||||
$('#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{
|
||||
$('#uploadButton').show();
|
||||
}
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
<tr>
|
||||
<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;" >
|
||||
|
||||
Reference in New Issue
Block a user