sigmatec_pk
asked on
how to send a multipart post (to send images) as a soap packet ?
Hi Everyone,
I want to upload images to some server using multipart post request. I am using PHP/cURL to send soap request envelopes
Any help would be very appreciated.
Amjad
I want to upload images to some server using multipart post request. I am using PHP/cURL to send soap request envelopes
Any help would be very appreciated.
Amjad
a problem with the php code, use this one:
// uploader.php :
<?
$target = "/cb/web/htdocs/fileTest/uploads/";
for($i=1; $i<=2; $i++){
$target_path = $target . basename( $_FILES['uploadedfile'.$i]['name']);
if(move_uploaded_file($_FILES['uploadedfile'.$i]['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile'.$i]['name'])." has been uploaded";
}else{
echo "There was an error uploading the file, please try again!";
}
}
?>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You need to files, one to select the images ( select.html ) , and the other to upload them ( uploader.php )
Open in new window