Skip to content

Commit

Permalink
fix: 파일 다운로드 시 파일명이 이상하게 표시되던 문제 해결
Browse files Browse the repository at this point in the history
- a태그의 download 속성 사용

#12, #108
  • Loading branch information
amaran-th committed Mar 21, 2022
1 parent 402acad commit 7604a40
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions src/page/Board/Components/Content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ const Content = ({ state, board, likeChangeFlag, setLikeChangeFlag }) => {
<a
href={API_URL + '/v1/post/download/' + file.id}
className=" w-full inline-block "
download={file.fileName}
>
<td className="border-b px-2 flex justify-between dark:border-darkComponent ">
<div className="w-[50vw] md:w-[40vw] ">
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4985,11 +4985,6 @@
"resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
"version" "1.0.0"

"fsevents@^2.3.2", "fsevents@~2.3.2":
"integrity" "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="
"resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz"
"version" "2.3.2"

"function-bind@^1.1.1":
"integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
"resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"
Expand Down

0 comments on commit 7604a40

Please sign in to comment.