解决IE不支持html5 file api中readAsBinaryString
//废话不多说,直接上源码 var reader = new FileReader(); reader.readAsBinaryString(fileData); reader.onload = function(e) { if (reader.result) reader.content = reader.result; var base64Data = btoa(reader.content); //... } //extend FileReader if (!FileReader.prototype.readAsBinaryString) { FileReader.prototype.readAsBinaryString = function (fileData) { var binary = ""; var pt = this; var reader = new FileReader(); reader.onload =...
群晖ds photo开启远程访问
ds photo APP在外网无法登陆,是因为DS photo默认是80端口,所以通过5000/5001无法访问,于是需要把80端口下面的这个配置文件放到5000/5001下面,可参考/etc/nginx/nginx.conf,里面有加载 conf.d/*, app.d/* 步骤: 1.在/etc/nginx/conf.d下增加dsm.PhotoStation.conf文件: location = /photo/csp_report.cgi { return 200; } location = /photo { rewrite ^/(.*)$ $1/ permanent; } location = /blog { rewrite ^/(.*)$ $1/ permanent; } rewrite ^/photo/share/([^/]+)$ /photo/share.ph...