myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [2687] trunk/app/controllers/workflows_controller


From: noreply
Subject: [myexperiment-hackers] [2687] trunk/app/controllers/workflows_controller.rb: Fix for uploading previews which was failing.
Date: Tue, 6 Sep 2011 04:24:35 -0400 (EDT)

Revision
2687
Author
dtm
Date
2011-09-06 04:24:32 -0400 (Tue, 06 Sep 2011)

Log Message

Fix for uploading previews which was failing.

Modified Paths

Diff

Modified: trunk/app/controllers/workflows_controller.rb (2686 => 2687)


--- trunk/app/controllers/workflows_controller.rb	2011-09-05 17:36:07 UTC (rev 2686)
+++ trunk/app/controllers/workflows_controller.rb	2011-09-06 08:24:32 UTC (rev 2687)
@@ -978,7 +978,7 @@
     # The dependency on file_column has been removed, but this code remains
     # disabled on Windows until it is confirmed as working.
     unless RUBY_PLATFORM =~ /mswin32/
-      workflow_to_set.image = params[:workflow][:preview] unless params[:workflow][:preview].empty?
+      workflow_to_set.image = params[:workflow][:preview].read unless params[:workflow][:preview].stat.size<1
     end
     
     # Set the internal unique name for this particular workflow (or workflow_version).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]