German umlauts in file names are encoded when uploading via server action form data #70147
Labels
bug
Issue was opened via the bug report template.
create-next-app
Related to our CLI tool for quickly starting a new Next.js application.
locked
Runtime
Related to Node.js or Edge Runtime with Next.js.
Link to the code that reproduces this issue
https://github.com/CombeeMike/nextjs-server-actions-form-data-upload-with-umlauts-demo
To Reproduce
Start app with
npm run dev
Navigate to
http://localhost:3000
Upload file with umlauts in name (e.g. aäaÄaöaÖaüaÜaßa.pdf)
🔥 Server logs
Received file name "aäa�aöa�aüa�a�a.pdf"
. Seeserver.actions.ts:submitFormAction
.Current vs. Expected behavior
Server should receive file names as transmitted from client.
aäaÄaöaÖaüaÜaßa.pdf
vsaäa�aöa�aüa�a�a.pdf
.Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Fri Mar 29 23:14:13 UTC 2024 Available memory (MB): 15923 Available CPU cores: 8 Binaries: Node: 20.10.0 npm: 10.2.3 Yarn: N/A pnpm: N/A Relevant Packages: next: 15.0.0-canary.156 // Latest available version is detected (15.0.0-canary.156). eslint-config-next: N/A react: 19.0.0-rc-206df66e-20240912 react-dom: 19.0.0-rc-206df66e-20240912 typescript: 5.3.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
create-next-app, Runtime
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: