Private
Public Access
1
0

upload form now allowing direct uploads between 1MB & 10 MB

This commit is contained in:
Sander Roosendaal
2017-11-04 15:19:39 +01:00
parent ce22a4173b
commit aa22ce1b47
2 changed files with 3 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ class DocumentsForm(forms.Form):
def __init__(self, *args, **kwargs):
from django.forms.widgets import HiddenInput
super(DocumentsForm, self).__init__(*args, **kwargs)
self.fields['offline'].widget = HiddenInput()
# self.fields['offline'].widget = HiddenInput()
from utils import (
workflowleftpanel,workflowmiddlepanel,

View File

@@ -22,8 +22,9 @@
}
if (f.size > 1048576) {
$('#id_offline').val('True');
$('#id_offline').prop('checked','True');
console.log("Set offline to True");
$('#extra_message').text('Because of the large size, the file will be processed offline. You will receive email when it is done. The extra actions will not be performed.');
$('#extra_message').text('Because of the large size, we recommend to use background processing. You will receive email when it is done. The extra actions will not be performed.');
$('#extra_message').addClass('message');
}
});