how to submit json file in sencha touch in http post multipart? -


मैं jmson फ़ाइल फॉर्म sencha स्पर्श को अपने टोमर्ट सर्वर पर http पोस्ट का उपयोग करना मल्टीपार्ट लेकिन मुझे नहीं पता कि कैसे करना है? क्या कोई मुझे कुछ विचार या उदाहरण दे सकता है धन्यवाद

आप यह jQuery का उपयोग कर सकते हैं।

  var request = नया फॉर्मडाटा (); $ .ईईसी (संदर्भ.प्रोटोटाइप.फ़ाइलडेटा, फ़ंक्शन (आई, ओबीजे) {request.append (i, obj.value.files [0]);}); Request.append ('कार्रवाई', 'अपलोड'); Request.append ('id', response.obj.id); $। एजेक्स ({प्रकार: 'पोस्ट', यूआरएल: संदर्भ.controller, डेटा: अनुरोध, प्रक्रिया डेटा: गलत, सामग्री प्रकार: गलत, सफलता: फ़ंक्शन (आर) {console.log (r); // यदि (त्रुटियाँ! = Null) {} और context.close ();}, त्रुटि: फ़ंक्शन (आर) {चेतावनी ('jQuery त्रुटि');}});    

Comments

Popular posts from this blog

sql - Return Function using Cursor -

javascript - Is there any way to add a new parameter to a function programmatically? -

sql server - How to use pivot in this table -