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

Error on image upload #975

Closed
lhetke opened this issue Aug 21, 2018 · 6 comments
Closed

Error on image upload #975

lhetke opened this issue Aug 21, 2018 · 6 comments

Comments

@lhetke
Copy link

lhetke commented Aug 21, 2018

Problem:
Error on image upload in the image manager. There's an error message in the laravel Debug Console:

The file "" does not exist {"userId":3,"email":"","exception":{}}

The file "" does not exist ../BookStack/vendor/symfony/http-foundation/File/MimeTypeGuesser.php#123

public function guess($path)
{
if (!is_file($path)) {
throw new FileNotFoundException($path);
}

Configuration:
Shared Hosting
CentOS 7.5.1804
Apache 2.4.6
PHP 7.1.20
MariaDB 10.1.33
BookStack v0.23.2

We are using BookStack since three months now. Up until now it worked flawlessly. A few days ago an error appeared whenever I tried to upload an image. I tried different image formats, sizes and Browsers. Updating to the latest BookStack version didn't fix the problem. Any Ideas how I can solve this error? Thanks in advance, Lukas

@ssddanbrown
Copy link
Member

Hi @lhetke,
Sorry to hear your having issues, Sounds like a strange one.

Had you been uploading images before in the last 3 months?
Did error occur before updating or right after updating?
Have you tried a few different image types to see if it's just one image causing strange issues?

@lhetke
Copy link
Author

lhetke commented Aug 24, 2018

Thank you for your response. We have been uploading Images up until a few days ago when the error message appeared. The error occurred before updating and persists after updating. I've tried several different images, different image file formats and sizes with no luck.

@lhetke
Copy link
Author

lhetke commented Aug 28, 2018

I don't know how, but image upload started working again this morning. I didn't update or change anything. Maybe it's something our hosting provider has done. Thanks anyways :)

@ssddanbrown
Copy link
Member

@lhetke Ah, Okay, Thanks for letting me know and happy to hear things are working! Will therefore close this.

@z3ugma
Copy link

z3ugma commented Feb 22, 2019

We are seeing the same issue:

[2019-02-22 22:35:21] production.ERROR: The file "" does not exist {"userId":7,"email":"@","exception":"[object] (Symfony\Component\HttpFoundation\File\Exception\FileNotFoundException(code: 0): The file "" does not exist at /u/apps/bookstack/bookstack/BookStack/vendor/symfony/http-foundation/File/MimeType/MimeTypeGuesser.php:123)
[stacktrace]

Configuration:
AWS EC2
Ubuntu 18.04
NGINX nginx/1.14.0
PHP v7.2.15-1
MariaDB 10.3.12
BookStack v0.25.1

@veegee2k17

@z3ugma
Copy link

z3ugma commented Feb 22, 2019

We have traced it to the max image upload size per laravel/framework#23492 , maybe the error message could gracefully indicate that the image was too large?

In PHP, I have the default upload_max_filesize => 2M => 2M

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

No branches or pull requests

3 participants