add method check_dir and set the default store_path=#{Rails.root}/upload"