Search code examples
laravellaravel-jetstream

The photo failed to upload. Laravel Jetstream


Getting a 401 (Unauthorized) on the dashboard while trying to upload a profile picture. App URL is set properly and the feature is uncommented. the console which shows a post request to site.com/livewire/upload-file is showing unauthorized and the response is empty. screenshot


Solution

  • Check your tmp directory. In php.ini, this is this line : sys_temp_dir = ..... In the code with : sys_get_temp_dir()

    Verify if the directory exist