Replies: 2 comments
-
|
• form 방식 파일 업로드 • 전송 후 서버에서 응답을 받아 새 페이지로 이동하거나 리다이렉트함. • 파일은 POST 방식으로 전송되며, 페이지 전체가 새로고침됨. • 장점: 간단한 구현. • 단점: UX가 떨어짐(파일 업로드 후 페이지 이동). • Ajax 방식 파일 업로드 • JavaScript나 jQuery, 최근에는 Axios 등을 이용해 비동기적으로 파일을 업로드. • 서버에 요청을 보내면서도 현재 페이지는 유지되고, 부분만 업데이트 가능. • 주로 FormData 객체를 이용해 파일과 데이터를 함께 전송함. const formData = new FormData(); |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
[모범 답변] form 방식은 페이지 전체를 새로고침하면서 파일을 전송하는 방법입니다. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🥸
Beta Was this translation helpful? Give feedback.
All reactions