Skip to content

Commit

Permalink
#2870 - File Upload Max Size#2870 (#3646)
Browse files Browse the repository at this point in the history
The previous maximum file upload size was 4MB, but it was determined
that larger file sizes are necessary for certain use cases. This change
will improve the user experience by allowing users to upload larger
files without encountering size restrictions.

**Technical AC's:**
- [x] Update the maximum file upload limit in formio.
- [x] Update the maximum file upload limit in the `OfferingUpload.vue`
and `WithdrawalUpload.vue`. Update the comments as well.
- [x] Change API configuration to allow 15 MB.

Co-authored-by: Bidyashish Kumar <Bidyashish>
  • Loading branch information
bidyashish authored Aug 21, 2024
1 parent 418219c commit 7d6430e
Show file tree
Hide file tree
Showing 13 changed files with 76 additions and 76 deletions.
2 changes: 1 addition & 1 deletion configs/env-example
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ ATBC_APP=
ATBC_ENDPOINT=

# File Upload Global Config
FILE_UPLOAD_MAX_FILE_SIZE=4194304
FILE_UPLOAD_MAX_FILE_SIZE=15728640
FILE_UPLOAD_ALLOWED_EXTENSIONS=.pdf,.doc,.docx,.jpg,.png

#SFAS Integration
Expand Down
2 changes: 1 addition & 1 deletion devops/openshift/api-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ parameters:
- name: IS_FULLTIME_ALLOWED
required: true
- name: FILE_UPLOAD_MAX_FILE_SIZE
value: "4194304"
value: "15728640"
- name: FILE_UPLOAD_ALLOWED_EXTENSIONS
value: ".pdf,.doc,.docx,.jpg,.png,.txt"
- name: ATBC_LOGIN_ENDPOINT
Expand Down
2 changes: 1 addition & 1 deletion sources/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export E2E_TEST_BCeID_USERNAME := $(or $(E2E_TEST_BCeID_USERNAME), SIMS_E2ETests
# BCeID Web Service
export BCeID_WEB_SERVICE_WSDL := $(or $(BCeID_WEB_SERVICE_WSDL), https://gws1.test.bceid.ca/webservices/Client/V10/BCeIDService.asmx?wsdl)
# File Upload Global Config
export FILE_UPLOAD_MAX_FILE_SIZE := $(or $(FILE_UPLOAD_MAX_FILE_SIZE), 4194304)
export FILE_UPLOAD_MAX_FILE_SIZE := $(or $(FILE_UPLOAD_MAX_FILE_SIZE), 15728640)
export FILE_UPLOAD_ALLOWED_EXTENSIONS := $(or $(FILE_UPLOAD_ALLOWED_EXTENSIONS), .pdf,.doc,.docx,.jpg,.png)
#SFAS Integration
export SFAS_RECEIVE_FOLDER := $(or $(SFAS_RECEIVE_FOLDER), SFAS-Receive)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@ export const OFFERING_BULK_UPLOAD_MAX_UPLOAD_PARTS = 2;
/**
* Max upload file size for an offering bulk upload (in bytes).
*/
export const OFFERING_BULK_UPLOAD_MAX_FILE_SIZE = 4194304;
export const OFFERING_BULK_UPLOAD_MAX_FILE_SIZE = 15728640;
/**
* Max number of parts (fields + files) allowed for a application bulk withdrawal.
*/
export const APPLICATION_BULK_WITHDRAWAL_MAX_UPLOAD_PARTS = 2;
/**
* Max upload file size for an application bulk withdrawal (in bytes).
*/
export const APPLICATION_BULK_WITHDRAWAL_UPLOAD_MAX_FILE_SIZE = 4194304;
export const APPLICATION_BULK_WITHDRAWAL_UPLOAD_MAX_FILE_SIZE = 15728640;
/**
* Expected length of the award value code.
*/
Expand Down
38 changes: 19 additions & 19 deletions sources/packages/forms/src/form-definitions/sfaa2022-23.json
Original file line number Diff line number Diff line change
Expand Up @@ -7838,7 +7838,7 @@
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMinSize": "0KB",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"persistent": true,
"protected": false,
Expand Down Expand Up @@ -7993,7 +7993,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"customClass": "",
"refreshOnChange": false,
Expand Down Expand Up @@ -9223,7 +9223,7 @@
}
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"key": "otherLivingSituationDocs",
"type": "file",
Expand Down Expand Up @@ -9376,7 +9376,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content47",
Expand Down Expand Up @@ -13967,7 +13967,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content48",
Expand Down Expand Up @@ -14861,7 +14861,7 @@
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMinSize": "0KB",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"persistent": true,
"protected": false,
Expand Down Expand Up @@ -15009,7 +15009,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content49",
Expand Down Expand Up @@ -20357,7 +20357,7 @@
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMinSize": "0KB",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"persistent": true,
"protected": false,
Expand Down Expand Up @@ -20507,7 +20507,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content51",
Expand Down Expand Up @@ -21370,7 +21370,7 @@
}
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"key": "parentNotBCResidentFileUpload",
"type": "file",
"input": true,
Expand Down Expand Up @@ -21523,7 +21523,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content53",
Expand Down Expand Up @@ -23912,7 +23912,7 @@
"clearOnHide": true,
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMinSize": "0KB",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"type": "file",
"labelPosition": "top",
"tags": [],
Expand Down Expand Up @@ -23965,7 +23965,7 @@
{
"key": "decreaseInIncomePanelColumnsContent2",
"input": false,
"html": "<p style=\"text-align: right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align: right;\">15MB file limit each</p>\n",
"type": "content",
"tags": [],
"conditional": {
Expand Down Expand Up @@ -25096,7 +25096,7 @@
}
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"key": "exceptionalExpenseFile",
"conditional": {
Expand Down Expand Up @@ -25249,7 +25249,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content55",
Expand Down Expand Up @@ -28884,7 +28884,7 @@
}
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"key": "parentLivingSituationFile",
"type": "file",
Expand Down Expand Up @@ -29037,7 +29037,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content57",
Expand Down Expand Up @@ -30946,7 +30946,7 @@
}
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"key": "transportationCostsFile",
"customConditional": "show = (data.transportationcostsituation === 'noLimit' || data.transportationcostsituation === 'special' || data.transportationcostsituation === 'educationPlacement');",
Expand Down Expand Up @@ -31099,7 +31099,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content59",
Expand Down
38 changes: 19 additions & 19 deletions sources/packages/forms/src/form-definitions/sfaa2023-24.json
Original file line number Diff line number Diff line change
Expand Up @@ -7838,7 +7838,7 @@
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMinSize": "0KB",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"persistent": true,
"protected": false,
Expand Down Expand Up @@ -7993,7 +7993,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"customClass": "",
"refreshOnChange": false,
Expand Down Expand Up @@ -9223,7 +9223,7 @@
}
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"key": "otherLivingSituationDocs",
"type": "file",
Expand Down Expand Up @@ -9376,7 +9376,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content47",
Expand Down Expand Up @@ -13967,7 +13967,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content48",
Expand Down Expand Up @@ -14861,7 +14861,7 @@
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMinSize": "0KB",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"persistent": true,
"protected": false,
Expand Down Expand Up @@ -15009,7 +15009,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content49",
Expand Down Expand Up @@ -20357,7 +20357,7 @@
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMinSize": "0KB",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"persistent": true,
"protected": false,
Expand Down Expand Up @@ -20507,7 +20507,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content51",
Expand Down Expand Up @@ -21370,7 +21370,7 @@
}
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"key": "parentNotBCResidentFileUpload",
"type": "file",
"input": true,
Expand Down Expand Up @@ -21523,7 +21523,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content53",
Expand Down Expand Up @@ -23912,7 +23912,7 @@
"clearOnHide": true,
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMinSize": "0KB",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"type": "file",
"labelPosition": "top",
"tags": [],
Expand Down Expand Up @@ -23965,7 +23965,7 @@
{
"key": "decreaseInIncomePanelColumnsContent2",
"input": false,
"html": "<p style=\"text-align: right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align: right;\">15MB file limit each</p>\n",
"type": "content",
"tags": [],
"conditional": {
Expand Down Expand Up @@ -25096,7 +25096,7 @@
}
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"key": "exceptionalExpenseFile",
"conditional": {
Expand Down Expand Up @@ -25249,7 +25249,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content55",
Expand Down Expand Up @@ -28884,7 +28884,7 @@
}
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"key": "parentLivingSituationFile",
"type": "file",
Expand Down Expand Up @@ -29037,7 +29037,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content57",
Expand Down Expand Up @@ -30946,7 +30946,7 @@
}
],
"filePattern": ".pdf,.doc,.docx,.jpg,.png,.txt",
"fileMaxSize": "4MB",
"fileMaxSize": "15MB",
"multiple": true,
"key": "transportationCostsFile",
"customConditional": "show = (data.transportationcostsituation === 'noLimit' || data.transportationcostsituation === 'special' || data.transportationcostsituation === 'educationPlacement');",
Expand Down Expand Up @@ -31099,7 +31099,7 @@
{
"components": [
{
"html": "<p style=\"text-align:right;\">4MB file limit each</p>\n",
"html": "<p style=\"text-align:right;\">15MB file limit each</p>\n",
"label": "Content",
"refreshOnChange": false,
"key": "content59",
Expand Down
Loading

0 comments on commit 7d6430e

Please sign in to comment.