sitelink1 https://blog.logrocket.com/how-to-build-...avascript/ 
sitelink2 https://github.com/Pankajtanwarbanna/van...ree/master 
sitelink3  
sitelink4  
extra_vars4  
extra_vars5  
extra_vars6  

- 첨부파일 : vanilla_script.7z

  > index.html : ui html

  > index.js : node js src

 

vanilla script 로 file stream 을 서버에 전송하는 방법에 대해 학습하는 문서이다.

XMLHttpRequest 를 사용하지 않고 fetch() 함수를 이용하는데 대용량 파일 전송에 적합한 코드로 보인다.

 

목차는 다음과 같다.

  1. Set up the Node.js server
  2. Set up the frontend
  3. Read the file content on the frontend
  4. Divide and stream the file in chunks to the backend
  5. Receive the chunks and store them on the server
  6. Upload multiple files

문서의 링크가 오랜시간 후에도 살아있다면 계속적인 학습에 도움이 되겠지만

10년후에는 이 문서를 살펴볼일이 없을테니 본문을 스크랩하지는 않고 걍 링크만 걸어둔다.

학습의 결과로 작성된 샘플 예제는 첨부하여 맨 위에 올려두었다.