Do you have this in your form tag:
enctype="multipart/form-data"
I'm doing a test image upload using this tutorial (https://readerstacks.com/how-to-upload-image-with-preview-in-laravel-9-with-example/). It's saving all of the data from the form (article title, poster's email address, and path to image), however the actual image is not created in the designated symlink folder as if the folder can't be found. I created a symlink as suggested in the tutorial and ran the php artisan storage:link command. and the result indicated that the default link was created but could not find the "uploads\images" file. However, after the error it showed:
$ php artisan storage:link
INFO The [C:\laragon\www\foodorder\public\storage] link has been connected to [C:\laragon\www\foodorder\storage\app/public].
The system cannot find the file specified.
INFO The [C:\laragon\www\foodorder\public\uploads] link has been connected to [C:\laragon\www\foodorder\storage\app/uploads].
$ php artisan storage:link
ERROR The [C:\laragon\www\foodorder\public\storage] link already exists.
ERROR The [C:\laragon\www\foodorder\public\uploads] link already exists.
One thing I noticed is phpstorm is showing a potential "null pointer exception" on the store method of
$request->file('image')
Also, after adding the link to the filesystem.php in the app\config folder, the uploads folder isn't created when running the symlink command.
Thoughts? Am I missing something?
Please or to participate in this conversation.