ue-node
v1.0.4
Published
ueditor for node.js with upyun
Downloads
3
Readme
ʹ��˵����
��������Ŀ app.js�����������´���
//============ueditor ���� �Լ� �����ƴ洢===================//
var UPYUN = require('upyun'); app.use('/ueditor/ue', ueditor({//������/ueditor/ue����Ϊ�ļ���������Ϊ��ueditor,����û��������ôӦ����/ueditor�汾��/ue configFile: '/ueditor/node/config.json',//�������ص���jsp�ģ�����д/ueditor/node/config.json mode: 'upyun', //���ش洢��дlocal �� upyun hostName: 'http://xxx.b0.upaiyun.com', //upyun ��ַ upyun: new UPYUN( '-1', //bucket ��Ҫʹ�õ� upyun �ռ�����. '', //ӵ�� bucket ��Ȩ�IJ���Ա '',//ӵ�� bucket ��Ȩ�IJ���Ա������ 'v0', //API �����㣬����ˢ������ֵ: ctcc �� v1: �й����� cucc �� v2: �й���ͨ cmcc �� v3 �й��ƶ� 'legacy' //���� API��Ŀǰ�Ὣ�˰汾��ΪĬ�ϣ� ), staticPath: path.join(__dirname, 'public'), //���ø�����ֻ�Ա��ش洢��Ч dynamicPath: '/drea' //���ø�Ŀ¼����ѡ���ϴ�����Ƶ����ͼƬ���ĸ�Ŀ¼�£�����Ҫ /��ֻ��upyun��Ч })); //============================end==========================//
ע�⣺ʹ��ǰ���� npm install upyun web Ŀ¼��Ϊ ǰ�˵� ueditor �����е� express ���õľ�̬Ŀ¼�£�һ��Ϊ publicĿ¼��