Skip to content

Instantly share code, notes, and snippets.



Block or report user

Report or block AmitKKhanchandani

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
AmitKKhanchandani / formdata-example.js
Created Oct 18, 2018
FormData Example with File from the input element
View formdata-example.js
var file = $('#order_file').prop('files')[0];
var form_data = new FormData();
$.each($('#ordercreate').serializeArray(), function (key, input) {
if (form_data.has( {
form_data.set(, input.value);
} else {
form_data.append(, input.value);
AmitKKhanchandani / index.html
Created May 26, 2018
JS Bin redux counter example // source
View index.html
<!DOCTYPE html>
<meta name="description" content="redux counter example">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src=""></script>
<script src=""></script>
You can’t perform that action at this time.