Re: [請益] PPT沒辦法上傳至資料庫

看板PHP作者 (蚊子)時間18年前 (2007/11/05 18:13), 編輯推噓2(203)
留言5則, 2人參與, 最新討論串3/4 (看更多)
※ 引述《qazsd (nice play!)》之銘言: : 我用的參考書是Dreamweaver 8 & PHP 5 資料庫網站實作 : 第14張的檔案上傳製作 似乎沒辦法將PPT檔上傳至資料庫 : 資料表的檔案格式是 long blob : 想請問有人知道是否某些檔案上傳不了資料庫 : 謝謝 我想跟你的檔案類型並沒有關係 只是因為這個檔案比較 大 一點 http://dev.mysql.com/doc/refman/5.0/en/gone-away.html If you need big queries (for example, if you are working with big BLOB columns), you can increase the query limit by setting the server's max_allowed_packet variable, which has a default value of 1MB. You may also need to increase the maximum packet size on the client end. More information on setting the packet size is given in Section B.1.2.10, “Packet too large”. http://dev.mysql.com/doc/refman/5.0/en/packet-too-large.html You can also use an option file to set max_allowed_packet my.ini [mysqld] max_allowed_packet=16M -- http://cttlee.no-ip.com -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 124.8.108.175

11/06 01:32, , 1F
該檔案是1.2MB 原本是是中文命名的 改成英文後 仍然不行 囧
11/06 01:32, 1F

11/06 01:36, , 2F
且upload_max_filesize = 10M 而網頁內的大小從原本限制
11/06 01:36, 2F

11/06 01:38, , 3F
10000B 到 400000B 仍然不行 @@
11/06 01:38, 3F

11/06 01:48, , 4F
對了 然後在資料庫裡檔案的型態是 long blob @@
11/06 01:48, 4F

11/06 12:49, , 5F
那個......400000B好像只有300多KB喔!
11/06 12:49, 5F
文章代碼(AID): #17Bkp28q (PHP)
文章代碼(AID): #17Bkp28q (PHP)