FormData ãªãã¸ã§ã¯ãã¯ããã§ããã¾ã㯠XMLHttpRequest API ã使ç¨ãã¦éä¿¡ããããã®ãã¼ã¨å¤ã®ãã¢ã®éåãã³ã³ãã¤ã«ã§ãã¾ããæ¬æ¥ã¯ãã©ã¼ã ãã¼ã¿ã®éä¿¡ã«ä½¿ç¨ãããã¨ãæ³å®ãã¦ãã¾ãããããã¼ã®ã¤ãããã¼ã¿ãä¼éããããã«ãã©ã¼ã ã¨ã¯ç¬ç«ãã¦ä½¿ç¨ãããã¨ãã§ãã¾ããä¼éããããã¼ã¿ã¯ããã©ã¼ã ã®ã¨ã³ã³ã¼ãã¿ã¤ãã multipart/form-data ã«è¨å®ããã¦ããå ´åã«ãsubmit() ã¡ã½ããã§éä¿¡ããéã«ä½¿ç¨ãããã¼ã¿ã¨åãå½¢å¼ã§ãã const send = document.querySelector("#send"); send.addEventListener("click", async () => { const formData = new FormData(); formData.append("username", "Groucho
ããã«ã¡ã¯ã@yoheiMuneã§ãã ãã¡ã¤ã«ã¢ãããã¼ããå®è£ ããæã¯ãã¤ãè¦æ¦ããã®ã§ãããmultipart/form-dataã¨ãããã¼ã¿å½¢å¼ãç解ã§ããããããªãã¨å®è£ ã§ããããã«ãªãã¾ãããä»æ¥ã¯ããã¡ã¤ã«ã¢ãããã¼ãã§ã¯å¿ é ã¨ãè¨ããmultipart/form-dataã«ã¤ãã¦ãããã°ã«ã¾ã¨ãã¾ããã ç®æ¬¡ ãµã³ãã«ã³ã¼ã æ¬è¨äºã®ãµã³ãã«ãGithubã«ç½®ãã¦ããã¾ããNode.JSã®ãµã¼ãã¼ã§å®è£ ãã¦ãã¾ããå®éã«åããã¨ç解ã®å©ãã«ãªãã¨æãã¾ãã®ã§ãå¿ è¦ããã°ãåç §ãã ããã ã³ã³ãã³ãã®ç¨®é¡ã¨ã¯ multipart/form-dataãæ±ãåã«ãã¾ãã¯ãã³ã³ãã³ãã®ç¨®é¡ãã«ã¤ãã¦ç解ããå¿ è¦ãããã¾ãã ããã³ãã¨ã³ãã¨ããã¯ã¨ã³ãã¨ã®ãã¼ã¿ã®ããåãã§ã¯ãhtmlãjavascriptãpngãjsonãªã©æ§ã ãªç¨®é¡ã®ãã¼ã¿ãæ±ãã¾ãããã®éã«ãã©ããªãã¼ã¿ã
ãã®ãµã¤ãã§ã¯ç°¡åã«ä½¿ãã便å©ãªã¦ã§ããã¼ã«ãå ¬éãã¦ãã¾ãããã¾ã使ããã¨ã§Webéçºãæ¥ã ã®ä½æ¥ãå¹çåãããã¨ãã§ãã¾ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}