Skip to content
Snippets Groups Projects
Commit efa04340 authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

adding description param for dspace upload worker

parent df768cdf
No related branches found
No related tags found
No related merge requests found
......@@ -3,9 +3,9 @@ class DspaceUploadWorker
@@dspace= nil
def perform(item_id, media_path)
def perform(item_id, media_path, description = nil)
file = File.new(media_path, 'r')
bitstream = dspace.items.add_bitstream(file, id: item_id, name: File.basename(media_path), description: 'beta upload')
bitstream = dspace.items.add_bitstream(file, id: item_id, name: File.basename(media_path), description: description)
end
private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment