Modified: branches/wf4ever/app/controllers/research_objects_controller.rb (3135 => 3136)
--- branches/wf4ever/app/controllers/research_objects_controller.rb 2012-09-25 17:32:46 UTC (rev 3135)
+++ branches/wf4ever/app/controllers/research_objects_controller.rb 2012-09-26 07:18:40 UTC (rev 3136)
@@ -72,6 +72,9 @@
# get url (if provided)
url = "" if ro_params[:url].is_a?(String) && !ro_params[:url].empty?
+ # get request body (if provided)
+ file = request.raw_post if request.raw_post != nil && request.env["CONTENT_TYPE"] == "text/turtle"
+
# get uploaded file (if provided)
file = ro_params[:data].read if ro_params[:data].respond_to?(:read)