게시글 작성후 게시과정에서 첨부파일 file_key 반환

게시된 글에서 첨부파일 불러오는 함수를 참고하여 게시글 submit 순간에 attach 첨부파일에 대한 파일링크를 반환받아 다른 api로 넘기는 작업을 하고싶습니다.

게시글을 넘기면서 attach 첨부파일에 대한 링크를 반환받는 함수를 실행 할 수 있는 방법은 없을까요?

첨부드린 코드는 admin-document.php 에 있는 링크반환 함수 호출 구문입니다.

<!--파일첨부-->
<?php if($content->isAttached()):?>

<div class="kboard-attach">
	<div class="attachLeft attachLabel">
		<span style="font-size: 16px;"></span>
	</div><!-- attachLeft End -->
	<div class="attachLeft filelists">

	<?php foreach($content->getAttachmentList() as $key=>$attach):?>
		<button type="button" class="kboard-button-action kboard-button-download" onclick="window.location.href='<?php echo $url->getDownloadURLWithAttach($content->uid, $key)?>'" title="<?php echo sprintf(__('Download %s', 'kboard'), $attach[1])?>"><?php echo $attach[1]?></button>
	<?php endforeach?>

</div><!-- attachLeft.filelists End -->
</div>
<?php endif?>

 

좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기
좋은 정보와 인맥을 동시에, 워드프레스 사용자 단톡방 참여하기