PhoneGap upload Image to server on form submit

前端 未结 4 1616
南旧
南旧 2021-01-31 06:29

I am facing problem here as in phonegap image is uploaded to the server once u select a picture.I don\'t want to upload image before submitting form. Image is uploaded automatic

4条回答
  •  北海茫月
    2021-01-31 06:53

    You're already sending custom fields in your example.

    var params = new Object();
    params.value1 = "test";
    params.value2 = "param";
    
    options.params = params;
    

    Just populate params with your form fields.

提交回复
热议问题