Error on image upload #786

Closed
opened 2026-02-04 22:17:02 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @lhetke on GitHub (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

Originally created by @lhetke on GitHub (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
OVERLORD added the 🐕 Support label 2026-02-04 22:17:02 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Aug 23, 2018):

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?

@ssddanbrown commented on GitHub (Aug 23, 2018): 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?
Author
Owner

@lhetke commented on GitHub (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 commented on GitHub (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.
Author
Owner

@lhetke commented on GitHub (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 :)

@lhetke commented on GitHub (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 :)
Author
Owner

@ssddanbrown commented on GitHub (Aug 31, 2018):

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

@ssddanbrown commented on GitHub (Aug 31, 2018): @lhetke Ah, Okay, Thanks for letting me know and happy to hear things are working! Will therefore close this.
Author
Owner

@z3ugma commented on GitHub (Feb 23, 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 commented on GitHub (Feb 23, 2019): We are seeing the same issue: [2019-02-22 22:35:21] production.ERROR: The file "" does not exist {"userId":7,"email":"<user>@<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
Author
Owner

@z3ugma commented on GitHub (Feb 23, 2019):

We have traced it to the max image upload size per https://github.com/laravel/framework/issues/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

@z3ugma commented on GitHub (Feb 23, 2019): We have traced it to the max image upload size per https://github.com/laravel/framework/issues/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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#786