You are viewing limited content. For full access, please sign in.

Question

Question

LF Forms Custom HTML Insert Image File Size Limit

asked on May 22, 2024

Client needs to upload an image to be displayed in a form as part of Custom HTML.

 

User wants to upload a file larger than 50kb.

Is there any way to increase this limit or is it a hard limit?

If it is a hard limit are there any other options? Can't just put the file in the repository and link to it as this is a public form and the unlicensed users won't be able to access the repository.

0 0

Replies

replied on May 22, 2024

I can't speak to whether or not the upload can be changed, and I assume you are self-hosted and not on Cloud.  Here's how I do it for forms in my self-hosted environment.

I usually just put the image files on the server(s) and then use HTML img tags to display them.

Let's say I have an image named picture.png that I need to display on my form.  I need it to work both internally if my staff are accessing the Form via authenticating into the internal server, and externally if public users are accessing the Form that way, so I'll put the image on both servers in the same location.

I go to C:\Program Files\Laserfiche\Laserfiche Forms\Forms\img on the servers, and then add a subfolder called custom or something like that, and put my image file in there.  Example:
C:\Program Files\Laserfiche\Laserfiche Forms\Forms\img\custom\picture.png
Again - this is on BOTH the internal and external servers.

Then on my form, in the Custom HTML element, I add an img tag like this: 

<img src="/forms/img/custom/picture.png">

 

If you haven't changed the default set-up, then the base URL for Forms is pointing to the C:\Program Files\Laserfiche\Laserfiche Forms folder, so pointing to /forms/img/custom/picture.png will direct to C:\Program Files\Laserfiche\Laserfiche Forms\Forms\img\custom\picture.png.  Because I set-up the same name and location of the image file on both servers, it works regardless of which server is used to access the form.

Does that all make sense?

3 0
replied on May 22, 2024

It does and I can certainly give it a try. Thanks!

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.