def file_dialog
      @uploaded_files = UploadedFile.all.reject { |file| file.is_image? }
      render layout: false
    end
def file_dialog
      @uploaded_files = UploadedFile.all.reject { |file| file.is_image? }
      render layout: false
    end
GET /uploaded_files/file_dialog