Bad File Uploaded: the request was rejected because no multipart boundary was found

Have a question about Bullhorn's HTTP based APIs? You've found the right place.

API Update [posted on December 13, 2012]:

This version of the Bullhorn APIs should no longer be used.

All new work should be done using Bullhorn's REST or Web Services APIs. For more information please visit: http://developer.bullhorn.com/documentation

Bullhorn REST API provides a simpler and faster way for developers to build applications that interact with the Bullhorn platform and is used by Bullhorn Inc. to develop features of the Bullhorn ATS/CRM application.

Of the BullhornSTAFFING HTTP API interfaces listed below, our analysis shows that the following are most commonly used by developers:

Resume Parsing API
Published Job Data (XML)
The interface to these will continue to work as is because Bullhorn will replace the back end to use REST API. The URLs for these 2 specific APIs may change in the 2nd half of 2013; developers may require to update their applications to use the new URLs.

Moderators: StaffingSupport, s.emmons

Locked
wisetr
User
Posts: 1
Joined: Sat Jul 25, 2015 12:58 am

Bad File Uploaded: the request was rejected because no multipart boundary was found

Post by wisetr » Mon Aug 10, 2015 7:31 am

By using rest Api .user create and when upload resume of user using this code ]

$resume = array(
"name" => "@" . $path
);
$res_val = json_encode($resume);
$url = $corpToken . 'file/Candidate/34380/raw?externalID=Portfolio&fileType=SAMPLE&BhRestToken=' . $session_id.'&format=doc';
$tuCurl = curl_init($url);
curl_setopt($tuCurl, CURLOPT_URL, $url);
curl_setopt($tuCurl, CURLOPT_VERBOSE, 1);
curl_setopt($tuCurl, CURLOPT_HTTPHEADER, array('Content-type: multipart/form-data'));
curl_setopt($tuCurl, CURLOPT_POST, true);
curl_setopt($tuCurl, CURLOPT_CUSTOMREQUEST, "PUT");
curl_setopt($tuCurl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($tuCurl, CURLOPT_POSTFIELDS, $res_val);
$content = curl_exec($tuCurl);
curl_close($tuCurl);
return $content;

Response like :-
{
"errorCode" : 500,
"errorMessage" : "Bad File Uploaded: the request was rejected because no multipart boundary was found."
}
any suggestions plz reply

Locked