Sending JSON + Multiple Files in One `multipart/form-data` Request
Sending JSON + Multiple Files in One "multipart/form-data" Request Ran into something today while uploading data using multipart/form-data. I needed to send multiple things in the same request: a JSON payload, and an actual file attachment. The JSON must be appended as a plain string, while files should use Blob or File. const formData = new FormData(); // JSON payload formData.append("payload_json", JSON.stringify(payload)); // Text file formData.append( "files[0]", new Blob([txtCont...
Read post
星空 - Hoshizora - one of my quick weekend project
星空 - Hoshizora - one of my quick weekend project Home: https://hoshizora.markterence.me Github: https://github.com/markterence/hoshizora This is a copy of the content I had in the website with some extras 01 Hoshizora (星空, meaning "starry sky" in Japanese) began as one of those "I need this right now" weekend project moments as a developer. While working on a GitHub repository, I found myself wanting a simple, elegant way to showcase the stargazers and supporters — those people who take a ...
Read post
First Time on Arch Linux - Part 1/undefined
Last updated: 1st February 2025 I wanted to make a dev box, at least run it on VM, rice it, use Hyprland and install it on a real machine to use it as a daily driver for Work and Programming. I've found showcases of it on r/unixporn and it was visually appealing to me, so I decided to try it out, the showcases are cool, uwu and very kawaii—and it's relaxing to look at. However, even though I liked the Linux ecosystem and installed and used a few distros repeatedly, such as Linux Mint (Cinnamon,...
Read post
Hello Standardnotes
...
Read post
JavaScript Full‑Stack: Heap Out of Memory
Lately my builds have been screaming “JavaScript heap out of memory.” It’s not just the Vue app I’m working on right now—I've hit the same wall with React and Angular projects, basically any front‑end bundle that swells beyond a modest size. What finally steadied things down was a tiny change in my package.json scripts: package.json { "scripts": { "serve": "NODE_OPTIONS=--max_old_space_size=4096 vue-cli-service serve", "build": "NODE_OPTIONS=--max_old_space_size=4096 vue-cli-service ...
Read post