Vich 上传包未在上传文件夹中保存大图像

Vich upload bundle not saving big images in upload folder

图片上传正常。 但是如果我想上传一个大文件,我指的不是文件大小,而是文件的宽度,例如 3024 × 4032,捆绑包将数据插入 mySQL 但它不保存文件在上传文件夹中。 这可能是 php.ini 最大值的问题吗? 如果是,在 symfony 3.4 中必须将 php.ini 放在哪里?

谢谢 迈克

您需要在 php.ini 中的两个宫殿上设置最大值:

post_max_size = 20M

upload_max_filesize = 20M