2013-09-27 3 views
0

내 amazon s3 버킷에 이미지/비디오/...를 업로드하고 싶습니다. 내 파일 업로드에 Transloadit을 사용하고 있습니다. 업로드 작동하지만 내 이미지는 다음과 같이 저장됩니다경로 이미지 + transloadit을 사용하여 amazon s3에 파일 업로드

이미지/EF/c3f8aa22f70265d8c12c799df0bbed/image.jpg를

난 그냥 내/이미지 폴더의 "image.jpg를"을 갖고 싶어 . 내 Transloadit 코드 :

$('form#MyForm').transloadit({ 
     wait: true, 
     triggerUploadOnFileSelection: true, 
     params: { 
      auth: { key: "myapikey" }, 
      steps: { 
       resize_to_125: { 
        robot: "/image/resize", 
        use: ":original", 
        width: 750, 
        height: 750 
       }, 
       store: { 
        robot: "/s3/store", 
        key: "myket", 
        secret: "mysecretkey", 
        bucket: "mybucket/images", 
       } 
      } 
     } 
    }); 

아무도 내가이 작업을 수행 할 수있는 방법을 알고? 저장 세그먼트

답변

2

추가 경로 :

steps: { 
      resize_to_125: { 
       robot: "/image/resize", 
       use: ":original", 
       width: 750, 
       height: 750 
      }, 

store: { 
       robot: "/s3/store", 
       key: "myket", 
       secret: "mysecretkey", 
       bucket: "mybucket", 
       path: "images/image.jpg", 
      } 
관련 문제