-
Hello. When I try to upload an image or file, I get a Validation error |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The error lies in the fact that the address in the browser's address bar differs from the one specified in the settings. This is because you are using Laravel in a subdirectory, as evidenced by the presence of You can find numerous discussions, such as these: laravel/framework#51210 (comment) The framework's developers state that they do not support and do not plan to support installation in a subdirectory. If you are an experienced user, you might attempt to resolve this using configuration files (this was previously possible for Mix, but I haven't tried it with Vite). However, such solutions do not guarantee proper functionality or support in the future. The best option would be to set up the environment according to the framework's requirements. |
Beta Was this translation helpful? Give feedback.
The error lies in the fact that the address in the browser's address bar differs from the one specified in the settings. This is because you are using Laravel in a subdirectory, as evidenced by the presence of
/public/
in the address bar.You can find numerous discussions, such as these:
laravel/framework#51210 (comment)
laravel/horizon#660 (comment)
laravel/framework#32236 (comment)
laravel/telescope#561 (comment)
The framework's developers state that they do not support and do not plan to support installation in a subdirectory.
If you are an experienced user, you might attempt to resolve this using configuration files (this was previously possible for Mix, but I haven't tried it with Vi…