ApiUtils | Multipart/form-data Integration and File Uploads Made By Glich

ApiUtils

Hello App Creators!

I’m thrilled to introduce ApiUtils, a powerful extension that enables seamless API interactions. Whether you’re sending form data, uploading files, or handling custom headers, this extension simplifies HTTP requests with ease.

Key Features:
:heavy_check_mark: Send multipart/form-data requests with form data and file uploads
:heavy_check_mark: Event-driven response handling with detailed response code and content
:heavy_check_mark: Supports dynamic form fields and optional file inclusion

Perfect for integrating seamless API communication and file uploads in your app with minimal effort! :rocket:

:memo: Specifications


:package: Package: com.syntex.apiutils
:floppy_disk: Size: 9.35 KB
:gear: Version: 1.1
:mobile_phone: Minimum API Level: 14
:date: Updated On: 2025-09-10T18:00:00Z
:laptop: Built & documented using: FAST v4.3.2

Event:

ApiUtils has total 1 event.

:yellow_heart: ResponseReceived

Triggered when a response is received. Returns response code, content, and URL.

event

Parameter Type
responseCode number
responseContent text
url text

Methods:

ApiUtils has total 2 methods.

:purple_heart: SendFormRequest

Sends a multipart/form-data request with form fields and an optional file.

Parameter Type
url text
formData dictionary
filePath text
headers dictionary

:purple_heart: SendFileRequest

Uploads a file using multipart/form-data encoding.

Parameter Type
url text
filePath text
headers dictionary

Example:
we can post form like :


:pushpin: Why ApiUtils Extension is Better than Web Component

1. Native Multipart/Form-Data Support

  • The Web Component does not natively support multipart/form-data requests.
  • extension directly handles:
    • Form fields (YailDictionary)
    • File uploads (filePath)
    • Custom headers (Authorization, Content-Type, etc.)
  • This makes it ideal for uploading images, videos, or any other files — something that is very limited or complex in the default Web component.

:link: Download the extension:
com.syntex.apiutils.aix (9.4 KB)

If you, as a user, feel that some feature is missing or you want a new function added, just share your ideas. Future updates will be based on community feedback, so you can shape how this extension grows. :rocket:

Don’t Quit

If you like it, leave a :heart:

8 Likes