Upload images question; limit file size

New Here ,
Apr 14, 2021 Apr 14, 2021

Copy link to clipboard

Copied

Using

Thanks to this community, I created a button that lets the user upload an image into an image field:

 

this.getField("image").buttonImportIcon();

 

I also learned that it is not possible to "reset" the image field; I need to link the "reset" button to a blank image. (This is a major annoyance.)

 

My last question is: how do I ensure that the user does not upload a large (greater than 300 kb) image? I can't figure out the code for this.

 

Thanks.

 

 

TOPICS
PDF forms

Views

31

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation