thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.72k stars 2.67k forks source link

Whoopsie! The "" file does not exist or is not readable. #5830

Open enkhtulga opened 5 months ago

enkhtulga commented 5 months ago

Laravel version

9.11

PHP version

8.0.2

Voyager version

1,5

Database

MySQL

Description

  1. The below error occurred when i try to upload 2.9mb pdf file into Media. The "" file does not exist or is not readable.

Evidence for error: https://github.com/thedevdojo/voyager/assets/6397097/581bbbda-eced-48e8-bcde-bbf7bd5d9bea

Working Evidence for 800kb pdf file: ![Uploading Screen Shot 2024-01-06 at 14.23.30.png…]()

  1. When i upload file (field type is file) in BREAD new/edit then small pdf file (800kb) works fine. 2.8mb pdf file doesn't upload but alert with successfully updated and goes to bread list page.

What I checked:

Steps to reproduce

Described in Description section.

Expected behavior

it will upload file properly.

Screenshots

No response

Additional context

No response

Emerica commented 5 months ago

Make a phpinfo page and make sure the configuration options you're trying to set are actually being applied to your server. Check the laravel and nginx error logs for hints. Make sure tmp has space.
If it can do small files it's probably not a write permission issue, I'd guess there's a config option you're missing or hasn't been fully applied.

keyurpatel90 commented 3 months ago

Thanks @Emerica phpinfo works for me, i was wondering the php --ini were showing different configuration on server and the actual loaded was different. This was surely due to upload_max_size parameter issue.

Emerica commented 3 months ago

php when run from the command line might not be the same php version the server uses. All depends on your server configuration. Nice to see you solved it.