app/models/user.rb
# Directory used for automated upload from local server path
Directory used for automated upload from local server path
Directory used for automated upload from local server path
def create_user_directory
    if Rails.application.secrets.local_upload_path
      require 'fileutils'
      FileUtils.mkdir_p(Rails.application.secrets.local_upload_path+"/#{self.id}")
    end
  end
def create_user_directory if Rails . application . secrets . local_upload_path require 'fileutils' FileUtils . mkdir_p ( Rails . application . secrets . local_upload_path + "/#{self.id}" ) end end
Directory used for automated upload from local server path
Directory used for automated upload from local server path