Hi, i am using
this ajax upload plugin from valums. I wish to use it inside a form. my form fields are , name, age and image etc. Now i have this code here which uploads the image.
- var upload = new AjaxUpload('#property_i',
- {
- action: 'submitproperty.php',
- autoSubmit: false,
- name: 'property_image',
- onSubmit : function(file , extension){
- alert(file);
- alert(extension);
- },
- onComplete: function(file, response){
- alert(response);
- }
- });
-
- var upload_data = upload.setData({
- 'propertytype':'propertytype'
- });
My problem is, i am not able to send the data along with the image. I have a submit button, which upon clicking should be able to send the data along with the file. Has anyone worked around with it. I would insist on using this particular plugin itself. The
plugin's demo page says that file uploads can be achieved inside a form. I want to make it work for my project.
Thanks in advance..