Commit b6769696 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey

fix bitstream upload

parent 5f4c4553
......@@ -50,8 +50,8 @@ module Dspace
end
action :add_bitstream, 'POST /rest/items/:id/bitstreams' do
query_keys :name, :description
body { |file| Base64.encode64(file.read) }
query_keys :name, :description, :bundle_name
body { |file| file.read }
handler(200) { |response| Dspace::Bitstream.new(JSON.parse(response.body)) }
end
......@@ -63,4 +63,4 @@ module Dspace
end
end
end
end
\ No newline at end of file
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment