PeterF's avatar

Jetstream photo upload failing

Hi All..... I am using the Jetstream scafolding for user management, and I have enabled the profile photo capability in the config file. When I click on the Select a new photo button in the profile management, the browser displays the file selection popup, I select a photo, click the 'open' button on the browser popup, and the popup goes away, and then immediately returns prompting me to select an image a second time. There is nothing in log files at all... just silence.... then when I select a picture a second time, either the same one or a different one, it fails, gracefully, with the validation error message saying "Photo failed to upload"..... when I check the logs now, there is a massive stack trace saying

local.ERROR: File does not exist at path .....storage/debugbar/Xb03601ac322a6bff4a60daf2a687161a.json

And its right... that path does not exist....

Any ideas what is happening here?

0 likes
4 replies
cg0012's avatar

have you created your storage link?

php artisan storage:link
Sinnbeck's avatar

The error is from debugbar. Try disabling it. Then clear the log and try again. Now see if the error changes

PeterF's avatar

I turned debugbar off and got the real error, which was livewire not being able to write to my storage directory. I had recently moved to valet and doing that mid project, seems to have upset some permission subtly...... Anyway, I have changed the permissions in an ugly way (its dev on my local machine, so thats ok).... but I still have the weirdness of having to select the photo twice... there are no errors ... might just be chrome....

Please or to participate in this conversation.