7
난 기반의 통합 문서 서버 4.4.3 우분투를 사용하고
을 기반으로 문서를 다운로드 할 URL을 형성, 울부 짖는 코드는 내가 키를 기반으로 URL을 형성 할 수있는 방법, 내 적합성에 대한 사용자 정의됩니다사용자 정의 기능 키
asc_docs_api.prototype.asc_customCallback = function(typeFile, bIsDownloadEvent)
{
var actionType = c_oAscAsyncAction.DownloadAs;
var options = {downloadType : DownloadType.Download };
this._downloadAs("save", typeFile, actionType, options, function(incomeObject){
if (null != incomeObject && "save" == incomeObject["type"]) {
//incomeObject["data"] will return key of the document instead of key, i need full url of the document with md5 and expires like below
//ex: http://cache/files/.....
});
};
미리 감사드립니다.
URL에서 md5를 사용하고 만료되는 이유는 무엇입니까? 다운로드 URL은 별명이 –
인 nginx에 직접 매핑됩니다. 우리는 md5를 사용하여 무차별 공격으로부터 캐시의 파일을 보호합니다. 이 목적을 위해 우리는 [nginx secure_link] (http://nginx.org/en/docs/http/ngx_http_secure_link_module.html) 을 사용합니다. md5 및 만료가있는 URL은 서버 측에서 만들어야합니다. 응답을위한 – ibnpetr
감사합니다 @ibnpetr –