Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
# encoding: utf-8
class TrackUploader < CarrierWave::Uploader::Base
include Sprockets::Helpers::RailsHelper
include Sprockets::Helpers::IsolatedHelper
include CarrierWaveDirect::Uploader
# Recommended for use with fog
include CarrierWave::MimeTypes
process :set_content_type
def extension_white_list
%w(mp3 m4a wav aiff flac)
end
def filename
"#{original_filename}".underscore
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.