From f979c28e5568a73b41246ebc9c600d52a35c280d Mon Sep 17 00:00:00 2001 From: ultra-pool Date: Tue, 12 Oct 2021 18:32:07 -0500 Subject: [PATCH 1/4] KYC wording & Image upload fix to 9.9MB +/- --- server/tools/nginx/proxy.conf | 2 +- templates/local/nginx/proxy.conf | 2 +- web/src/config/lang/en.js | 30 +++++++++++++++--------------- web/src/utils/icon.js | 4 ++-- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/server/tools/nginx/proxy.conf b/server/tools/nginx/proxy.conf index 966876fade..6839221335 100644 --- a/server/tools/nginx/proxy.conf +++ b/server/tools/nginx/proxy.conf @@ -3,7 +3,7 @@ proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-Origin $http_origin; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -client_max_body_size 10m; +client_max_body_size 20m; client_body_buffer_size 128k; proxy_connect_timeout 90; proxy_send_timeout 90; diff --git a/templates/local/nginx/proxy.conf b/templates/local/nginx/proxy.conf index 966876fade..6839221335 100644 --- a/templates/local/nginx/proxy.conf +++ b/templates/local/nginx/proxy.conf @@ -3,7 +3,7 @@ proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-Origin $http_origin; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; -client_max_body_size 10m; +client_max_body_size 20m; client_body_buffer_size 128k; proxy_connect_timeout 90; proxy_send_timeout 90; diff --git a/web/src/config/lang/en.js b/web/src/config/lang/en.js index b11f593265..ad2a5331e4 100644 --- a/web/src/config/lang/en.js +++ b/web/src/config/lang/en.js @@ -523,10 +523,10 @@ export default { ISSUED_DATE: 'Please select the date in which your document was issued', EXPIRATION_DATE: 'Please select the date when your document will expire', - FRONT: 'Please upload a scan of your passport', + FRONT: 'Please upload a scan of your passport or national Id', PROOF_OF_RESIDENCY: 'Please upload a scan of document proving the address you current reside', - SELFIE_PHOTO_ID: 'Please upload a selfie with passport and note', + SELFIE_PHOTO_ID: 'Please upload a selfie with passport or national Id and note', }, FORM_FIELDS: { TYPE_LABEL: 'ID Document Type', @@ -535,24 +535,24 @@ export default { ID: 'ID', PASSPORT: 'Passport', }, - ID_NUMBER_LABEL: 'Passport Number', - ID_NUMBER_PLACEHOLDER: 'Type your passport number', - ID_PASSPORT_NUMBER_LABEL: 'Passport Number', - ID_PASSPORT_NUMBER_PLACEHOLDER: 'Type your passport number', - ISSUED_DATE_LABEL: 'Passport Issue Date', - EXPIRATION_DATE_LABEL: 'Passport Expiration Date', - FRONT_LABEL: 'Passport', - FRONT_PLACEHOLDER: 'Add a copy of your passport', - BACK_LABEL: 'Back Side of passport', + ID_NUMBER_LABEL: 'Passport Number or National Id Number', + ID_NUMBER_PLACEHOLDER: 'Type your passport Number or national Id number', + ID_PASSPORT_NUMBER_LABEL: 'Passport Number or national id number', + ID_PASSPORT_NUMBER_PLACEHOLDER: 'Tyype your passport or national Id number', + ISSUED_DATE_LABEL: 'Passport or National Id Issue Date', + EXPIRATION_DATE_LABEL: 'Passport or National ID Expiration Date', + FRONT_LABEL: 'Passport or National Id', + FRONT_PLACEHOLDER: 'Add a copy of your passport or national id', + BACK_LABEL: 'Back Side of passport or national id', BACK_PLACEHOLDER: 'Add a copy of the backside of your ID (if applicable)', - PASSPORT_LABEL: 'Passport Document', + PASSPORT_LABEL: 'Passport or National ID Document', PASSPORT_PLACEHOLDER: 'Add a copy of your Passport document', POR_LABEL: 'Document proving your address', POR_PLACEHOLDER: 'Add a copy of a document that proves your address', - SELFIE_PHOTO_ID_LABEL: 'Your Selfie with passport and Note', + SELFIE_PHOTO_ID_LABEL: 'Your Selfie with passport or national Id and Note', SELFIE_PHOTO_ID_PLACEHOLDER: - 'Add a copy of your Selfie with passport and Note', + 'Add a copy of your Selfie with passport or national Id and Note', }, INFORMATION: { IDENTITY_DOCUMENT: 'Identity Document', @@ -560,7 +560,7 @@ export default { ID_SECTION: { TITLE: 'Please make sure that your submitted documents are:', LIST_ITEM_1: - 'HIGH QUALITY (colour images, 300dpi resolution or higher).', + 'HIGH QUALITY (color images, 300dpi resolution or higher and Image must be 2MB in size per image or lower) Use a Webtool to resize.', LIST_ITEM_2: 'VISIBLE IN THEIR ENTIRETY (watermarks are permitted).', LIST_ITEM_3: 'VALID, with the expiry date clearly visible.', WARNING_1: diff --git a/web/src/utils/icon.js b/web/src/utils/icon.js index 3979ff2265..3335580890 100644 --- a/web/src/utils/icon.js +++ b/web/src/utils/icon.js @@ -124,11 +124,11 @@ export const getAllIconsArray = (themeKeys, content = defaultIcons) => { return allIcons; }; -const sizeLimitInMB = 2; +const sizeLimitInMB = 10; export const checkFileSize = (file) => { if (file && file.size) { - const sizeLimit = sizeLimitInMB * 1024 * 1024; + const sizeLimit = sizeLimitInMB * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024; return file.size < sizeLimit; } }; From 1d3a1eb1b7b12d0dad4cf844d837f5ade5d0f392 Mon Sep 17 00:00:00 2001 From: ultra-pool Date: Wed, 13 Oct 2021 16:34:11 -0500 Subject: [PATCH 2/4] Spelling error fixed --- web/src/config/lang/en.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/config/lang/en.js b/web/src/config/lang/en.js index ad2a5331e4..cc6f4ed95f 100644 --- a/web/src/config/lang/en.js +++ b/web/src/config/lang/en.js @@ -538,7 +538,7 @@ export default { ID_NUMBER_LABEL: 'Passport Number or National Id Number', ID_NUMBER_PLACEHOLDER: 'Type your passport Number or national Id number', ID_PASSPORT_NUMBER_LABEL: 'Passport Number or national id number', - ID_PASSPORT_NUMBER_PLACEHOLDER: 'Tyype your passport or national Id number', + ID_PASSPORT_NUMBER_PLACEHOLDER: 'Type your passport or national Id number', ISSUED_DATE_LABEL: 'Passport or National Id Issue Date', EXPIRATION_DATE_LABEL: 'Passport or National ID Expiration Date', FRONT_LABEL: 'Passport or National Id', From eb66697c7c100806accc198490a4f2267c4251f5 Mon Sep 17 00:00:00 2001 From: ultra-pool Date: Fri, 15 Oct 2021 17:50:30 -0500 Subject: [PATCH 3/4] delete repeat code --- web/src/utils/icon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/utils/icon.js b/web/src/utils/icon.js index 3335580890..aa1ba4ddf2 100644 --- a/web/src/utils/icon.js +++ b/web/src/utils/icon.js @@ -128,7 +128,7 @@ const sizeLimitInMB = 10; export const checkFileSize = (file) => { if (file && file.size) { - const sizeLimit = sizeLimitInMB * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024 * 1024; + const sizeLimit = sizeLimitInMB * 10240; return file.size < sizeLimit; } }; From ce500f764b80765ee1a3e4a03f4051d328cbce4c Mon Sep 17 00:00:00 2001 From: ultra-pool Date: Sat, 16 Oct 2021 13:41:22 -0500 Subject: [PATCH 4/4] changed sizeLimitInMB --- web/src/utils/icon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/utils/icon.js b/web/src/utils/icon.js index aa1ba4ddf2..703d75a0c9 100644 --- a/web/src/utils/icon.js +++ b/web/src/utils/icon.js @@ -128,7 +128,7 @@ const sizeLimitInMB = 10; export const checkFileSize = (file) => { if (file && file.size) { - const sizeLimit = sizeLimitInMB * 10240; + const sizeLimit = sizeLimitInMB * 1024 * 10; return file.size < sizeLimit; } };