HTTP "POST" multipart/form-data network.request format

Hi there,

I’m curious as to the format of posting a multipart/form-data HTTP post. I’m posting both text and an image file, but don’t see an example of how to do both in the same post on http://docs.coronalabs.com

Any suggestions? Is this even possible?

I’ve checked this: http://developer.coronalabs.com/code/how-upload-image-server-multipartform-data out but I receive an error saying that “module ‘class_MultipartFormData’ not found.” Is this because the SDK has been updated and no longer includes this? 

That has never been part of Corona SDK.  It’s a separate community contributed file by Brill Pappin, Sixgreen Labs Inc.  If you scroll down that page just a little bit, you will see the code for the module.  Use your text editor and create a file called:  class_MultipartFormData.lua and paste that code in.

That should get you started.

Thanks Rob,

Currently having new problems, but they’re new, so progress is being made! I’ll direct my further inquiry to the thread associated with that page. 

I’ve checked this: http://developer.coronalabs.com/code/how-upload-image-server-multipartform-data out but I receive an error saying that “module ‘class_MultipartFormData’ not found.” Is this because the SDK has been updated and no longer includes this? 

That has never been part of Corona SDK.  It’s a separate community contributed file by Brill Pappin, Sixgreen Labs Inc.  If you scroll down that page just a little bit, you will see the code for the module.  Use your text editor and create a file called:  class_MultipartFormData.lua and paste that code in.

That should get you started.

Thanks Rob,

Currently having new problems, but they’re new, so progress is being made! I’ll direct my further inquiry to the thread associated with that page.