박천명
05/24/2024, 8:43 AMZendesk
05/27/2024, 8:57 AM박천명
05/27/2024, 9:09 AM- type: http
id: get-urls
label: 파일 추가
axios:
method: GET
url: <https://admins.nant.app/getPresignUrls?fileLength=1&folderName=curations>
params:
- key: ADMIN_BASE_URL
valueFromEnv: true
1. file 형태 입력에서 updateOptions 을 통한 트리거 실행
- key: thumb
label: 썸네일 이미지
format: file
id: thumb
required: false
class: w-50
updateOptions:
type: http
axios:
method: POST
url: {{url}}
params:
- key: url
- key: file
format: file
requestFn:
## 여기에서 트리거에서 가져온 url 로 업로드 시키면 된다.
const result = await get-urls.trigger()
const presignedUrl = result.url
## S3 업로드 실행
1. await 이후 s3 파일 업로드 동작 실행 (구현중, 트리거로 시도 중입니다)
2. 업로드 이후 reponseFn 으로 라우트 된 s3 이미지 경로 저장
3. 셀렉트에서 insert 실행 시 정보 함께 실행김학범
05/28/2024, 7:36 AM