Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Space_x's avatar

Laravel 9.20.0 and IIS 10 File Upload issue

Hello developers, I have a Laravel version 9.20.0 project in Windows Server which is running IIS 10 It has a file upload section. when attaching a file it shows the "ValueError Path cannot be empty" error, but if I move the project to XAMPP within the same server it doesn't show any issue it can upload files without any error.

Does anyone have experienced it or know the solution, please?

0 likes
2 replies
Space_x's avatar
Space_x
OP
Best Answer
Level 1

@jlrdw Thanks for sharing the information I believe it can be a solution, but I solved it just by giving read/write access to the (Windows/temp) folder after I was able to upload files via the portal without any error.

1 like

Please or to participate in this conversation.