gpt4 book ai didi

symfony-sonata - SonataMediaBundle : The file "" does not exist 500 Internal Server Error - FileNotFoundException

转载 作者:行者123 更新时间:2023-12-02 07:05:47 40 4
gpt4 key购买 nike

我使用 SonataMediaBundle 上传了一些文件,但是当我想添加另一个文件时,我遇到了那个错误。

你有什么想法吗?

这是堆栈错误:

in /var/www/znata.com/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeGuesser.php at line 107  -+

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

谢谢

最佳答案

可能是因为您的 php.ini 设置设置了最大上传大小。

在您的 php.ini

中将其更改为更高的值
upload_max_filesize = 2M

关于symfony-sonata - SonataMediaBundle : The file "" does not exist 500 Internal Server Error - FileNotFoundException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12289859/

40 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com