1

I am trying to add a bitstream to an Item through Postman.When I post , I chose body as "form-data" and added a key as "file" and selected a file.In addition to it I have given key as "name" and value as the file name. It is getting successfully added to the Item but the name is null.

enter image description here

MartinW
  • 4,966
  • 2
  • 24
  • 60
Ponni
  • 43
  • 5

1 Answers1

0

I assume you use DSpace 6.


First: Make sure you are logged in. Get the JSESSIONID cookie by calling

Post: http://yourserver.com/rest/login   

with Query Params email and password


Then: Post the Bitstream like this

Post: http://yourserver.com/rest/items/your-item-id/bitstreams

Add the file under Body and select binary:

Add file. DSpace 6 API / Postman

Set filename and description as Query Params:

Add filename and description for bitstream. DSpace 6 API / Postman

Hit send.

MartinW
  • 4,966
  • 2
  • 24
  • 60