Skip to content

File uploads

jcoyne edited this page Oct 26, 2012 · 4 revisions
file = Rack::Multipart::UploadedFile.new
file_asset = FileAsset.new
file_asset.add_file_datastream(file, :label=>file.original_filename, :mimeType=>file.content_type, :dsid=>'content')
file_asset.container = @holding_asset
file_asset.save
Clone this wiki locally