spec/internal/app/uploaders/multipart/video_uploader.rb in s3_multipart-0.0.7 vs spec/internal/app/uploaders/multipart/video_uploader.rb in s3_multipart-0.0.8

- old
+ new

@@ -3,10 +3,13 @@ # Attaches the specified model to the uploader, creating a "has_one" # relationship between the internal upload model and the given model. attach :video + # Only accept certain file types. Expects an array of valid extensions. + accept %w(wmv avi mp4 mkv mov mpeg) + # Takes in a block that will be evaluated when the upload has been # successfully initiated. The block will be passed an instance of # the upload object when the callback is made. # # The following attributes are available on the upload object: @@ -27,6 +30,6 @@ # See above comment. Called when the upload has successfully completed on_complete do |upload, session| # Code to be evaluated when upload completes end -end \ No newline at end of file +end