소스 검색

comments on attachment handler

master
Patrick Peng Sun 8 년 전
부모
커밋
d5d9c793bb
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      server.go

+ 2
- 0
server.go 파일 보기

@@ -188,6 +188,8 @@ func uploadHandler(w http.ResponseWriter, r *http.Request) {
io.Copy(f, file)
}

//when user requst an attachment from our server, we get the file from CRM server and reply it back
//in this way, user has no 'direct-access' to the CRM server.
func crmAttachmentHandler(w http.ResponseWriter, r *http.Request) {
fileID := getCrmFileID(r.URL.Path)
saveAs := GlobalPath.CRMAttachment + "crm_attach_" + fileID //add prefix for easy deleting

Loading…
취소
저장