You need to sign in to do that
Don't have an account?
Compress file while uploading in aura
Hi All,
I have a requirement where I need to upload the files to the salesforce (Notes and Attachments under the Opportunity related List). Salesforce has the Limit to store the file having file size up to 4.5mb. I have a running code which is uploading the files whose file size is less than 4.5 MB. What I want is, if the user clicks on the upload button and if the File size is greater than 4.5 MB (like 5-6 MB) then before uploading, it should compress the file until its size is equal or smaller to 4.5 MB.
NOTE: File can be in any format (.jpeg, doc etc).
Any Help is appreciated! Thanks in Advance.
Regards,
Mohit