javascript에서 첨부파일 넣기

easyliving·2023년 2월 11일
0

FRONT_END (JAVA_SCRIPT)

목록 보기
34/55

javascript에서 첨부파일 넣기

<tr>
            <th>파일명</th>
            <td>
            <c:if test="${bdto.bfile!=null}">
            	<a href="./upload/${bdto.bfile}" download><span class="material-symbols-outlined">install_desktop</span>${bdto.bfile}</a>
            </c:if>
            <c:if test="${bdto.bfile==null}">
            파일없음
            </c:if>
            </td>
</tr>
<tr>
            <th>첨부파일</th>           
            <td>
            <c:if test="${bdto.bfile!=null}">
            	<img src="./upload/${bdto.bfile}">
            </c:if>
            <c:if test="${bdto.bfile==null}">
            파일없음
            </c:if>
            </td>
 </tr>

server.xml에 Context docBase 부분 추가 :업로드 폴더 설정

      <Context docBase="practice" path="/practice" reloadable="true" source="org.eclipse.jst.jee.server:practice"/><Context docBase="shop" path="/shop" reloadable="true" source="org.eclipse.jst.jee.server:shop"/>
      <Context docBase="c:/upload" path="/practice/upload" reloadable="true"/>

업로드 폴더 설정

profile
가끔져요

0개의 댓글