Month: 2025 年 12 月
Why FastAPI Fails to Parse PHP cURL Multi-File Uploads (and How to Fix It)
In real-world projects, it’s quite common to run into issues when using PHP cURL to send multiple files to a FastAPI endpoint. FastAPI may fail to parse the uploaded file fields correctly, leading to missing files, mismatched field names, or unexpected request payloads. This article breaks down the key reasons behind these parsing failures and presents a proven, reliable way to implement multi-file uploads, helping developers build stable cross-language file upload workflows between PHP and FastAPI.
Practical PHP Notes: Commonly Used Syntax and Functions I Use in Real Projects
This article is a practical collection of PHP syntax and functions that I frequently use in real-world projects. It covers common use cases such as string manipulation, array handling, date and time processing, file operations, and error handling. Instead of serving as a textbook, this post focuses on useful patterns that actually appear in production code, acting as a personal cheat sheet for efficient PHP development.