: Quarkus 3.10.2 Multipart Upload Corrupts Excel Files - "File is Corrupt" Error #47659
Closed
dheebangithup
started this conversation in
Community
Replies: 3 comments 2 replies
-
Can you provide a reproducer? Does it work with other file format? |
Beta Was this translation helpful? Give feedback.
2 replies
-
BTW, 3.10 is a bit old, did you try to update to a more recent version? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you @cescoffier , issue resolved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem:
When uploading .xlsx files via multipart form in Quarkus 3.10.2 (Java 17), the saved files become corrupted. Excel shows "We found a problem with some content" error when opening them. The files are 30-40% larger than the originals, while other file types work fine.
Key Symptoms:
✅ Files appear to upload successfully
❌ Saved .xlsx files are unreadable in Excel
🔍 Hex dumps show altered file signatures
📈 File sizes increase by ~40% (e.g., 100KB → 140KB)
🖼️ Images also affected, but text/PDF files work normally
Environment:
properties
Quarkus: 3.10.2
Java: Amazon Corretto 17
OS: Windows 11 & Linux (both affected)
Storage: Local filesystem (ext4/NTFS)
Current Code:
java
import org.jboss.resteasy.reactive.multipart.MultipartFormDataInput;
import org.jboss.resteasy.reactive.PartType;
import jakarta.ws.rs.;
import jakarta.ws.rs.core.MediaType;
import java.io.InputStream;
import java.nio.file.;
import java.util.Map;
@path("/upload")
public class FileUploadResource {
}
properties
quarkus.http.body.handle-file-uploads=true
quarkus.resteasy-reactive.disable-input-stream-buffering=true
quarkus.http.body.uploads.directory=${java.io.tmpdir}
quarkus.http.limits.max-body-size=50MB
Beta Was this translation helpful? Give feedback.
All reactions