Hi,
I am working on one application which needs to upload the file to server. I am able to upload file to the server using the following code:
Code:
_LIT8(KDataStart,"--AaB03x");
_LIT8(KCrlf,"\r\n");
_LIT8(KContent,"Content-Disposition: form-data; name='file_name'; filename='");
_LIT8(KContentTypeForm, "multipart/form-data; boundary=AaB03x");
_LIT8(KFileCompletion,"'");   
_LIT(KContent2,"Content-Type: text/plain");
_LIT8(KDataEnd,"--AaB03x--");


iPostDataPtr.Append(KCrlf);
iPostDataPtr.Append(KDataStart);
iPostDataPtr.Append(KCrlf);
iPostDataPtr.Append(KContent);
iPostDataPtr.Append(iFileBeingUploaded);//fullpath file name
iPostDataPtr.Append(KFileCompletion);
iPostDataPtr.Append(KCrlf);
iPostDataPtr.Append(KContent2);
iPostDataPtr.Append(KCrlf);
iPostDataPtr.Append(KCrlf);
iPostDataPtr.Append(tempBufferPtr); //file contents
iPostDataPtr.Append(KCrlf);
iPostDataPtr.Append(KDataEnd);
iPostDataPtr.Append(KCrlf);

iEngine->IssueHTTPPostL(uri8, KContentTypeForm, *iPostDataPtr);
Now the problem is that i want to send one more parameter along with the file upload. How can i do same?

My server side code is like this:
Code:
if(isset($aPARAMETERS['RESPONSE' ]))//check the response parameter
{

if(isset($_FILES['file_name' ]))
{
//read the file contents
}

}
RESPONSE is the parameter which i need to send along with the file upload.

Please provide me appropriate help.

Regards,
Mohit