Weird Server Actions bug when naming a path for a file #67434
Labels
bug
Issue was opened via the bug report template.
Runtime
Related to Node.js or Edge Runtime with Next.js.
Script (next/script)
Related to Next.js Script Optimization.
Link to the code that reproduces this issue
https://codesandbox.io/p/sandbox/nextjs-error-code-fccprj
To Reproduce
In my project, when some server action is called it calls the function saveFile, which looks like this:
this goes well without any errors, however, when just changing the code to:
I tried many ways to add the file extension to the file path, but all of them caused the same error:
Current vs. Expected behavior
It is expected to have the file name with the proper extension, but this not happening
Provide environment information
Which area(s) are affected? (Select all that apply)
Runtime, Script (next/script)
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: