Hello All,

I have implemented item then bitstream upload from PHP to Dspace but I am 
unable to set the bundle to THUMBNAIL, the following is my code:

$upload_url = 
"{$url}/rest/items/{$dspace_id}/bitstreams?name={$filename}&description={$file_description}&bundleName={$file_bundle}&mimeType="
;

$curl = curl_init($upload_url);
curl_setopt($curl, CURLOPT_POSTFIELDS,    file_get_contents($filepath)); 
curl_setopt($curl, CURLOPT_HTTPHEADER,     array("Content-Type: {$filemime}"
, "Cookie: JSESSIONID={$JSESSIONID}")); 
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POST, true); // enable posting
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);




I am also unable to set the mime type for all documents except PDF and 
image files.

Any assistance will be appreciated.

Regards,

Munyiva


-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-community.
For more options, visit https://groups.google.com/d/optout.

Reply via email to