upload form now allowing direct uploads between 1MB & 10 MB
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user