Sending Files via POST with multipart/form-data in Java

To send files using mlutipart/form-data format in Java, we can utilize Apache HttpClient. This approach is commonly used for file uploads to REST APIs. import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.ContentType; import org.apache.http.entity.m ...

Posted on Wed, 23 Sep 2026 16:51:45 +0000 by s1m0n

Handling File Uploads in Java Web Applications

Web applications frequently need to accept binary data such as profile pictures or spreadsheets from users. Standard form submissions encoded as application/x-www-form-urlencoded append data to the URL, which is unsuitable for large or binary payloads because URLs have length restrictions. The multipart/form-data encoding was introduced to over ...

Posted on Mon, 21 Sep 2026 16:48:33 +0000 by kevinkhan

Implementing File Transfers and Browser Launching in Go

HTTP File Upload and Download Implementation This Go HTTP server handles file uploads and serves files for download: package main import ( "crypto/rand" "fmt" "io" "net/http" "os" "path/filepath" ) const ( uploadDir = "storage" maxSize = 10 << 20 // ...

Posted on Sat, 12 Sep 2026 16:37:19 +0000 by manchesterkid

Custom File Upload Implementation with Element UI

Core Implementation Strategy The key to customizing the upload behavior is utilizing the :http-request prop, which overrrides the default upload mechanism: <el-upload :http-request="handleCustomUpload" :auto-upload="false" multiple accept=".jpg,.png,.gif" > <el-button type="primary"> ...

Posted on Thu, 10 Sep 2026 16:46:08 +0000 by jannoy

Building Robust File Upload Handling in Spring Boot Applications

This guide demonstrates how to implement secure and production-ready file upload capabilities using Spring Boot. The solution covers configuration, controller logic, error handling, and basic validation—without relying on external storage services. Project Setup Initialize a Spring Boot project (v3.x recommended) with these core dependencies: ...

Posted on Mon, 07 Sep 2026 16:08:22 +0000 by mikes1471

Modern AJAX Techniques: JSON Handling, File Uploads, and User Feedback with SweetAlert

JSON Fundamentals JSON (JavaScript Object Notation) is a language-agnostic, lightweight data interchange format. It uses plain text to represent structured data and is widely adopted due to its simplicity, readability, and native compatibility with JavaScript. Valid JSON examples: ["alpha", "beta", "gamma"] { &quot ...

Posted on Sun, 06 Sep 2026 16:30:31 +0000 by mr_hacker

Blog Platform Image Upload and Category Management Implementation

Bug Fixes Article Archive Query SELECT FROM_UNIXTIME(create_date/1000,'%Y') AS year, FROM_UNIXTIME(create_date/1000,'%m') AS month, COUNT(*) AS count FROM ms_article GROUP BY year, month File Upload Functionality API Specification Endpoint: /upload Method: POST Parameters: Parameter Type Description image file Uploaded file ...

Posted on Sun, 14 Jun 2026 16:28:07 +0000 by sampledformat

ExtJS HtmlEditor Add Image Paste Plugin

Overview Users requested the ability to paste screenshots directly into ExtJS HtmlEditor without saving the image locally first. This enhancement reduces the number of steps from seven to just two, significantly improving usability. Implementation Details By default, users had to folow a multi-step process: Capture screenshot using QQ Save ima ...

Posted on Fri, 22 May 2026 17:54:03 +0000 by joshbb

Implementing Multi-File Upload with Ant Design Pro 5 and Express

Ant Design Upload Component Configuration The Ant Design upload component supports batch file selection through the multiple attribute. Here's how to configure the component for handling multiple file uploads: <Dragger name="file" multiple={true} action="/api/upload/batch" onChange={handleUploadChange} fileList= ...

Posted on Thu, 14 May 2026 23:42:59 +0000 by Napster

Upload-Labs File Upload Bypass Techniques and Implementation Strategies

Overview File upload vulnerabilities arise when web applications inadequately validate or sanitize user-supplied files before storing and serving them. Exploiting these flaws allows attackers to inject executable code—such as PHP webshells—into the server’s filesystem, often leading to remote code execution. Upload-Labs is a deliberately vulner ...

Posted on Thu, 14 May 2026 14:50:47 +0000 by jrforrester