make sure attachment is thumbnailed after being uploaded directly to S3

Change-Id: I4c9a866606da6b9fa407ade9c198d9e5bb38296b
Reviewed-on: https://gerrit.instructure.com/2553
Tested-by: Hudson <hudson@instructure.com>
Reviewed-by: Brian Whitmer <brian@instructure.com>
This commit is contained in:
Zach Wily 2011-03-08 12:19:14 -07:00
parent 0d58780258
commit 90bebbc2c0
1 changed files with 3 additions and 1 deletions

View File

@ -495,7 +495,9 @@ class FilesController < ApplicationController
end
@attachment.save!
@attachment.submit_to_scribd!
# normally this would be called by attachment_fu after it had uploaded the file to S3.
@attachment.after_attachment_saved
render_for_text @attachment.to_json(:allow => :uuid, :methods => [:uuid,:readable_size,:mime_class,:currently_locked,:scribdable?], :permissions => {:user => @current_user, :session => session})
else
render_for_text ""