Error 500 on upload

Hi. I’m getting errors when selecting images to upload. It’s set to upload to S3, but its saving the temp files to local.

Heres the XHR response preview Error 500:

{message: "Server Error"}
message: "Server Error"

(this is all it says)

Locally it works perfect, but on Forge server hosted on digital ocean it doesn’t. All permissions and storage links are working, tested by using storage to append to a log file and it creates the file.log and appends text to it.

Any ideas?

Many thanks

I found a workaround… I ended up defining the following in config/filesystems.php:

        'tmp-for-tests' => [
            'driver' => 'local',
            'root' => storage_path('app/livewire-tmp'),
        ],

Once changed and pushed to server, issue solved itself.