statusnet不能上传文件

1220420359 发布于 2011/08/11 09:48
阅读 560
收藏 0
statusnet安装完,其它一切正常,但是上传附件的时候就停止不动,添加不了任何附件。有附件的帖子发表不了。为什么啊啊啊啊啊???
加载中
0
鉴客
1
1220420359
唉。。。早就看过了,没有什么帮助呢,不过还是谢谢你,O(∩_∩)O~
0
lighter
lighter

你先看下lib/default.php文件,注意下这几行:

        array('default' => array('LilUrl' => array('shortenerName'=>'ur1.ca',
                                                   'freeService' => true,
                                                   'serviceUrl'=>'http://ur1.ca/'),
                                 'PtitUrl' => array('shortenerName' => 'ptiturl.com',
                                                    'serviceUrl' => 'http://ptiturl.com/?creer=oui&action=Reduire&url=%1$s'),
                                 'SimpleUrl' => array(array('shortenerName' => 'is.gd', 'serviceUrl' => 'http://is.gd/api.php?longurl=%1$s'),
                                                      array('shortenerName' => 'snipr.com', 'serviceUrl' => 'http://snipr.com/site/snip?r=simple&link=%1$s'),
                                                      array('shortenerName' => 'metamark.net', 'serviceUrl' => 'http://metamark.net/api/rest/simple?long_url=%1$s'),
                                                      array('shortenerName' => 'tinyurl.com', 'serviceUrl' => 'http://tinyurl.com/api-create.php?url=%1$s')),
                                 'TightUrl' => array('shortenerName' => '2tu.us', 'freeService' => true,'serviceUrl'=>'http://2tu.us/?save=y&url=%1$s'),
                                 'Geonames' => null,
                                 'Mapstraction' => null,
                                 'OStatus' => null,
                                 'WikiHashtags' => null,
                                 'RSSCloud' => null,
                                 'OpenID' => null),。。。。。。。

默认情况下,上传附件时系统会选用一个service(例如http://ur1.ca/)缩短附件的url地址,所以电脑必须联网才能上传成功。你也可以把这几行给注释掉,附件的url就不会被shorten,电脑有没有联网也就无所谓了

0
comewsz
comewsz

看看在config.php加上下面的配置:

$config['attachments']['supported'] = true;
array('image/png', 'image/jpg');
$config['attachments']['path'] = "/statusnet/file/";
$config['attachments']['dir'] = INSTALLDIR . '/file/';
$config['attachments']['uploads'] = true;
$config['attachments']['filecommand'] = "/usr/bin/file";
$config['attachments']['file_quota'] = 5000000;
$config['attachments']['user_quota'] = 50000000;
$config['attachments']['monthly_quota'] = 15000000;

返回顶部
顶部