Member-only story

Seamless File Uploads: Integrating Frappe with FilamentPHP

Jurin Liyun
2 min readSep 20, 2024

--

Introduction

In the ever-evolving landscape of web development, integrating different frameworks and technologies can unlock powerful functionalities. One such integration is between Frappe, a full-stack web application framework, and FilamentPHP, a modern toolkit for building beautiful admin panels. This blog post explores how to create a seamless file upload system using Frappe’s robust backend capabilities and FilamentPHP’s elegant frontend components.

Why Integrate Frappe and FilamentPHP?

Frappe provides a comprehensive backend solution with features like RESTful APIs, user authentication, and data management. On the other hand, FilamentPHP excels in creating intuitive and user-friendly admin interfaces. By combining these two, developers can leverage the strengths of both frameworks to build efficient and scalable applications.

Setting Up the Frappe API for File Uploads

First, let’s create a Frappe API endpoint that handles file uploads and validates the file data.

  1. Create a Python method in Frappe:
# let say the module is place on
# umserp.ext_procurement.api.upload_file

import frappe
from frappe import _

@frappe.whitelist()…

--

--

Jurin Liyun
Jurin Liyun

Written by Jurin Liyun

Developer, Trainer , Consultant, Father of two children

No responses yet