Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cruzmediaorg's avatar

Trying to upload files, returns null, locally works

I am trying to deploy my app to Digital Ocean / Ubuntu 22.04 / Nginx.

The site is running, but when I try to upload an image, the controller receives null... no errors given

I am using Laravel 10.7.1, Inertia and Vue3, file upload handled by Laravel Media Spatie Library (if relevant)

I select the file, and fill the forms as in local, previews shown, but when I post the form, nothing is received, no errors, nothing.

0 likes
4 replies
Ironyh's avatar

Did you symlink the storage on do?

php artisan storage:link?

cruzmediaorg's avatar

@Ironyh Yes, all previously uploaded images are showing. The problem is when uploading a new one.

cruzmediaorg's avatar

Now turns out it didn't work on local either. Seems like a problem with the Controller, let me check and I'll update if I find a solution.

cruzmediaorg's avatar

Fixed. Turned out the problem was not due to the server/nor PHP itself. The component was not converting the file correctly.

1 like

Please or to participate in this conversation.