0

尝试将大文件上传到 MongoDB 时,我似乎遇到了错误。

Fatal error: Uncaught exception 'MongoGridFSException' with message 'could not open file ' in /home/jclark/thundergrid.fusionstrike.com/thundergrid/thundergrid.php:33 Stack trace: #0 /home/jclark/thundergrid.fusionstrike.com/thundergrid/thundergrid.php(33): MongoGridFS->storeUpload('pic', Array) #1 /home/jclark/thundergrid.fusionstrike.com/thundergrid/admin/index.php(7): Admin->upload() #2 {main} Next exception 'MongoGridFSException' with message 'error setting up file: ' in /home/jclark/thundergrid.fusionstrike.com/thundergrid/thundergrid.php:33 Stack trace: #0 /home/jclark/thundergrid.fusionstrike.com/thundergrid/thundergrid.php(0): MongoGridFS->storeUpload() #1 /home/jclark/thundergrid.fusionstrike.com/thundergrid/admin/index.php(7): Admin->upload() #2 {main} thrown in /home/jclark/thundergrid.fusionstrike.com/thundergrid/thundergrid.php on line 33

我得到这些是有原因的还是......

非常感谢!

4

1 回答 1

1

如果文件超过 2GB/4GB,那么这可能是 PHP 在您的平台上构建方式的限制。在大多数情况下,LFS(大文件系统)没有启用(理论上它也没有得到 PHP 开发团队的官方支持)。您也可能使用 32 位编译的 PHP,在这种情况下,您需要 64 位构建。

于 2012-06-25T07:46:08.267 回答