How to send ajax data from input type = & quot; file & quot; to the file and from there add the image to the property of the file type element?
-
or maybe it's better to download it and then get a link like that ...
I send text fields bydata: ({name:$('#name').val(), nomer:$('#phone').val(),
can i send images in the same way?
and if so, how can you then add a new infoblock element to the file type property. text and select are added without problems$PROP['PHONE'] = $phone; $PROP[139][] = array('VALUE' => $select);
jQuery Avery Perez, Nov 5, 2019 -
To submit a form with files in js, it is better to use formData
https://developer.mozilla.org/en/docs/Web/API/FormData
The rest of the manipulations depend only on you.Anonymous
1 Answers
Your Answer
To place the code, please use CodePen or similar tool. Thanks you!