Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
enkhtulga opened this issue Jan 6, 2024 · 3 comments
Open

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

enkhtulga opened this issue Jan 6, 2024 · 3 comments

Comments

@enkhtulga
Copy link

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:

  • php.ini file (upload_max_filesize, post_max_size, memory_limit)
  • nginx.conf (client_max_body_size)
  • storage directory permission set to 755
  • storage directory is www-data:www-data
  • checked disk space using df -h

Steps to reproduce

Described in Description section.

Expected behavior

it will upload file properly.

Screenshots

No response

Additional context

No response

@Emerica
Copy link
Contributor

Emerica commented Jan 6, 2024

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
Copy link

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
Copy link
Contributor

Emerica commented Mar 25, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants