Office 365 Document library Sync option not enabled

I had a team site owner contact me wondering why they can’t sync to a new file library that they’ve created. (See image.)

enter image description here

So I went and did some exploring. They added a bunch of content types, and changed the default content type to a visio file and changed the default template to a visio. I got the document content type to be default and added a word document to be the template. Didn’t make any difference.

They have content approval turned on, I thought that might cause it. It doesn’t.

They have check out turned on to edit, that didn’t matter either.

I thought it might be an Asset Library, it isn’t.

You can still connect to Windows File Explorer up on the Library ribbon. When I copy the library and create a template of it, it still retains the same behaviour.

When I create a new document library in that site, it works fine.

I must be missing something, but I’m running out of ideas. Any assistance would be appreciated.

The remote server returned an error: (401) Unauthorized: While uploading file in document library using App Based Token Authentication

I am trying to upload a document to the document library using App Based Token authentication in SharePoint Online.

I have referred following link to set up the App Based token and the token successfull worked when I try to read any thing from the site.

But when I try to upload a file using following code,

string file = @"Path Of the file"; System.IO.FileStream fs = new System.IO.FileStream(file, System.IO.FileMode.Open, System.IO.FileAccess.Read); using (var ctx = new AuthenticationManager().GetAppOnlyAuthenticatedContext(siteUrl, "CLIENTID","CLIENTSECRET")) {     try     {         ctx.Load(ctx.Web, p => p.Title);                      ctx.ExecuteQuery();                         Console.WriteLine(ctx.Web.Title);                      Microsoft.SharePoint.Client.File.SaveBinaryDirect(ctx, "RelativePathToDocumentLibrary" + "/test.docx", fs, false);                 }                 catch (Exception ex)                 {                 } } 

It gives me error of

{“The remote server returned an error: (401) Unauthorized.”}

Any suggestion or reference link is most welcome.

Mount Steam Library

I bought a Easystore hardrive, and I tried to select it as a new library folder but when I did it said it must be on a file system mounted with execute permissions, the file is in “var – host – media – removable.” Please help me out. Thanks!!

SPO PowerShell – How to add AD Group as permission on a Document Library Folder

I am writing a PS script to create a site with a doc library. The doc library will have many folders, each of which need its permissions set via an AD Group. I have been using PNP PowerShell, but see no way to do this. I can assign SharePoint Groups to the folders, but I need to assign Domain Groups (AD groups). Been searching for hours, any help is appreciated!

SharePoint 2013 using Javascript to create a picture library carousel

I am trying to extend the out of the box Picture Library Slideshow Web Part , to be able to click an image and be redirected to a new link. Each image has its own link. i created a new field in the web part and use REST api to reference it to get the id’s and url. but i cant change the link to use a new one.

Name and url of document library

I’m using an OOTB Disposition workflow for expired documents. I have already defined Information Management Policy Settings on my publishing site.

It is working fine, x years after a document is created, the policy is creating a task. The link to the file name is fine, but there is no link to the actual document library! I tried to create a workflow to extract this from the document url, then found that it’s impossible to make a workflow on this kind of list!

Any suggestions please?

Disposition Expired Documents

If library is not visible to you why you see the automatic link in current navigation?

I used to remember that if you stop inheriting permissions from top and display automatic link in current navigation of a library, the users that have been removed should NOT see the library link at all. Now they can see the library link but when they click on it they see empty library. I expected the access denied page but no, just the library without any content (they can see however all metadata columns).

Am I remembering wrong or something has changed? The only way to ‘hide’ the URL is to use Audience targeting in Settings – Navigation?

I am using a classic site.

uploading a file to sharepoint using your phpSPO library

I saw from one of your previous post that you are an author of phpSPO. I came across your phpSPO library earlier this month while trying to access sharepoint by php.

I went through your GitHub and saw the samples but with my limited knowledge on sharepoint, I only manage to get myself authenticated with sharepoint using my account, but I don’t know how to say upload a file into sharepoint.

are you able to give me a simple example how to upload a file into sharepoint using your phpSPO library?

What is the best custom C# Library for REST API

I’m going to write a lot of code that works with SharePoint lists and libraries over REST and C# (HttpClient)

I want to create or find helper classes that help me do the following tasks over REST:

  • Get all list items (preferably in nice C# objects with all SP properties)
  • Get item/file by list ID
  • Get items using CAML
  • Delete item/file by ID
  • Update item/file
  • Create folder
  • Upload a file
  • Add List item

Is there a project/library you can recommend I can reuse so that I don’t write all these things myself?

Additional info:

  • CSOM (ClientContext) is not an option
  • There are a lot of samples with REST online, but they are too messy
  • I did some googling, but could not find one good Library/Project online that does all these things in a way I want
  • Preferably, I want this library/project to use HttpClient class