• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 Node.js, Express 게시판 이미지 업로드 기능

이미지 업로드 기능

2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 글쓴이
  • #118069

    Seonwoo Lee
    참가자
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <link href="/main.css" rel="stylesheet">
    </head>
    <body>
       
    <body class="grey-bg">
     <%- include('nav.ejs') %>
     <div class="detail-bg">
        <h4><%= JSON.stringify(posts.title) %></h4>
        <p><%= JSON.stringify(posts.content) %></p>
        < img src="<%= JSON.stringify(posts.img) %>">
    </div>
    </body>
    </body>
    </html>
    
    이 코드에서 < img src="<%= JSON.stringify(posts.img) %>">이 출력될때 
    'https://seonwooforum1.s3.us-east-2.amazonaws.com/1709774914976' 이런 주소로 출력이 되는데 이게 이미지 파일이 아니라 업로드가 안되네요.....
    잘못된 이미지 파일을 업로드 한건가요?
    #118126

    codingapple
    키 마스터
    이미지파일 업로드하는코드나 DB에 이미지경로 넣는 코드에서
    이미지 이름 잘 보이나 출력해봅시다
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠