Skip to content

Instantly share code, notes, and snippets.

View ismdibrahim's full-sized avatar
🏠
Working from home

Ibrahim Hossen ismdibrahim

🏠
Working from home
View GitHub Profile
@ismdibrahim
ismdibrahim / gist:d77eb9e28b796c8df0f582eca86fb023
Created August 18, 2025 09:54 — forked from Qubadi/gist:142c8637b06c936c0e21846488611440
JetFormbuilder Choose file ( mediafield ) + drag and drop + progressbar + image compression
Copy the following PHP and create a PHP snippet using your snippet plugins.
Paste the code into the plugin and save it.
Short description:
• A new design for choose file with new style, where everything can be controlled in backend.
• Added a new true network progress bar, when new images are uploaded.
• We have added a new option for image compression, where you can easily toggle on or off in backend.
(Note: Image compression works only on desktop and not on phone when you try to upload an image + image compression)
• We have added Target CSS Class where you add a CSS classname, and copy the same CSS classname and add it to the form
you have created in JetFormBuilder for media field → Block settings → Advanced. Where it shows CSS classname, add the