0

I have a requirement where i need to restrict the user to not upload the file size more than 2 MB. We are using lightning:fileUpload , for which i don't see any size parameter.

We are uploading file from 3 places for same object. We need restriction only in one place.

All please suggest on how we can limit the size on file upload. .

Thanks in advance.

  • You have to write a trigger on ContentVersion which would check size of file, if more just add error – Pranay Jaiswal Mar 5 at 18:50
  • We are uploading file from 3 places for same object. We need only in one place – RaJu Mar 5 at 18:51
  • SO you want that 2mb limitation everywhere? – Pranay Jaiswal Mar 5 at 18:53
  • no only in one place – RaJu Mar 5 at 18:54
  • @Adrian Larson Please help on this – RaJu Mar 6 at 2:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.