ByteScrum TechnologiesforByteScrum Technologiesblog.bytescrum.com·Sep 11, 2024How to Handle File Uploads in JavaScript: A Detailed Guide with ExamplesFile uploads are a crucial part of many web applications, whether it's for user profiles, documents, or images. With JavaScript, you can create a seamless and efficient file upload experience for your users. This comprehensive guide will take you thr...547 readsJavaScript
sathwikreddy GVsathwikreddygv.blog·Aug 24, 2024WTF is multipart/form-data in HTTPIntroduction I've always wondered how files are sent to the server in an HTTP request. Whenever I need to create a UI for file upload on the frontend and send it to the backend using an API call, I set the content-type to multipart/form-data in my HT...multipart/form-data
Shahab Movahhediblog.shmovahhedi.com·Jan 14, 2024In Search of a Reimplementation of FormDataThis is a chat of mine with GitHub Copilot. Nice job GitHub! movahhedi: Explain line by line exactly what each line of the code from the jquery source code defining the serialize functions for forms does: jQuery.fn.extend( { serialize: function(...js
Nirmal Kumarnirmalkumar.hashnode.dev·Aug 31, 2023Don’t use State for React Forms. Use this instead!Introduction When it comes to handling forms in react, the most popular approach is to store the input values in state variables. One of the reasons for following this approach is because, it's React, after all, and everyone tends to use the hooks th...1 like·27 readsReact
Anjanesh Lekshminarayananjavascript.co.in·Mar 1, 2023Client-side AJAX using JSONVery often, many developers, including myself in the past, normally all along we were using jQuery's $.ajax and sending in JSON with dataType: 'json' without really sending the content-type as a JSON string which is supposed to be application/json - ...121 readsAjax
Usamausamaadev.hashnode.dev·Nov 4, 2022How to add nested arrays and objects in the postman body via form-dataHi there, Welcome here. Usually, in form-data in postman, we write the data into key-value pairs. Like in the first column we write the key and then its value in the next column, I am ignoring other columns here. And users who are new to postman migh...5.1K readsnested array
Salma ABOUMEROUANEpurpose-code.hashnode.dev·Oct 27, 2022How to send HTML form data to the back-end (Node JS)How to send form data to the back-end (Node JS)? 1)- Let’s create a simple form with HTML and CSS For how to create a form you can check my tutorial: How to build a form in HTML Now we will create a simple form that will contain user’s full name, ema...71 readsNode.js
Okiki Ojoblog.okikio.dev·Sep 18, 2022Using FormData with AstroIntroduction Someone recently asked me how to use FormData with Astro, to which I responded I'll create a small document for this (I'll create a pr to add this to the Astro docs a little later). Getting started I won't go into detail on what FormData...6.0K readsAstro