PhoneGap upload Image to server on form submit

前端 未结 4 1624
南旧
南旧 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 07:08

    Create two functions you can call separately. One function for just getting the image, and another function to upload the image.

    You can do something like below.

    
    
      
        Submit form
    
        
        
      
      
        

    First Name:
    Last Name:
    Work Place:

提交回复
热议问题