php - Posting Blob Image using Ajax FormData -


My data sends no problems to DB, but post my "file" input in the Blob field in my DB Do not post I get an error.

My code looks like this:

  $ (function () {$ ('# userform'). Submit (function (event) {var fd = new form data ($ (This) [0]); $ .XX ({type: 'post', process data: wrong, content type: wrong, async: incorrect, cache: true, data: fd, data type: "text" url : 'mydburl.php', success: job (data); warning ('user successfully added');}, error: function () {warning ('there was an error adding new user'); < / Code>  

I am your How to add the photo to include "file" input? Any idea will help. My input name is only "photo". AJX, it is fine when sending the form, but because I'm developing for the devices I need AJAX to handle my form data. Any idea will be useful.

Thanks!

My original answer was incorrect. Edit Now:

Data Try removing the Rkar: "line of text"

Source:

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -