Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

KYC wording & Image upload fix to 9.9MB +/- #981

Merged
merged 7 commits into from Oct 20, 2021
Merged

KYC wording & Image upload fix to 9.9MB +/- #981

merged 7 commits into from Oct 20, 2021

Conversation

ultra-pool
Copy link
Contributor

Fixed and tested the Image bug for the KYC when submitting images. It was maxed to 2MB or less and word say "Network error". Now its been tested up to 9.7MB with all 3 images in PNG and JPG tested. You may test this for yourself at [https://trade.simpledex.net](Simpledex is my DIY testing ground for our Pro Cloud project) Once Bitholla Dev's have tested ill need these edits pushed to our Pro cloud asap. You may contact me via discord 饾暯饾暟饾暬饾暫#5278

Here's 5 screen shots Iv taken of the images uploaded via KYC plugin.
Blue Admin panel image preview = https://filerepo.io/index.php/s/TwPNRcz8XyRXWS6
Files in storage w/size's = https://filerepo.io/index.php/s/CHqWaeGy4dTEaAe
KYC wording change 1 = https://filerepo.io/index.php/s/q4LoDKnfS78Ntst
KYC wording change 2 = https://filerepo.io/index.php/s/QzPXmKGff9MtwAw
KYC wording change 3 = https://filerepo.io/index.php/s/55KA5ftXN7xxRkK

Copy link
Collaborator

@abeikverdi abeikverdi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The strings can be edited in the plugin itself.


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;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead use Math.pow

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand as this is not for a coin currency using a a lot of zeros. Please send a example or please edit the code ion the PR so i see what you are referring to.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its got a repeated multiplication. Cleaner to use power function instead.

web/src/config/lang/en.js Outdated Show resolved Hide resolved
@ultra-pool
Copy link
Contributor Author

ultra-pool commented Oct 13, 2021

This was the only way it worked. The plugin config has no settings for this image upload size.

web/src/utils/icon.js Outdated Show resolved Hide resolved
@ultra-pool
Copy link
Contributor Author

I will try 1024 * 10 and not 10240 and see if it will work on the DIY. We are needing atleast 10MB max.

@ultra-pool
Copy link
Contributor Author

Changed 1024 * 10 and not 10240 and it worked on our DIY test server. Once approved can we get this pushed or our Pro Cloud asap?

Thank you.

@abeikverdi abeikverdi merged commit 6d4205e into hollaex:develop Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants