New answers tagged

0

It seems you are running the upload document code using elevated privileges. First you should remove that and use impersonation. In order to impersonate another user you should get the token first using SPUserToken userToken = web.AllUsers[user].UserToken; Then you can create SPSite SPSite site = new SPSite(siteURL, userToken); From this point all ...


1

If this is a custom webpart, the custom code is running with System Account and is modifying the changes as per the code. If it is a client side code, you need to pass Credentials through Client context object. It will be something like this: using (ClientContext context = new ClientContext("http://yourserver/")) { context.Credentials = new ...


-1

There's an Office 2013 fix for this: https://blogs.technet.microsoft.com/projectsupport/2015/01/06/saving-projects-to-sharepointand-opening-them-again-part-1/


0

Finally I found the solution. If the file is open in any client machine in Edit mode, then there is a lock created on it. Though most of the Lock related properties of SPFile are of not much help, the LockId property helps. It carries a GUID as a string, which means that the file actually has a lock. So calling the ReleaseLock method on the SPFile by passing ...


0

As per your requirement there is no direct solution there is a work around you can do, you need to create any document library name it as X and follow the steps below: Enable content organizer feature on site. That will create a Drop off library on site which will be used to route the documents to your specified folders. For content organizer here is ...


0

I knew in Office there was a function to compare two documents but how to use it with SharePoint versions I never tried. Sometimes the answer is so close in front of you it turns invisible. The trick is to just open the file from SharePoint in Edit mode. Word will open and under the review tab you find a button called compare. Just choose Specific ...


0

OOTB you cannot see what changes are done inside a document through version history. You can just visualize the metadata properties. But you can download files for different versions and compare manually. Go to Version history. Click on context menu of each version. Download and view the file for that version.


1

I just came across this issue. This appears to be a limitation whereby SP.Utilities.CommandBlock does not get loaded to a published page in view mode. It will work for site collection admins, but not for owners/members/visitors. For non-site coll admins, the workaround is to check out the page, and then perform the drag-and-drop upload.


0

Using C# You must have wait for some time to check if the file is ready to use or not. Means you need to wait till lock status SPFile.SPLockType.None becomes true. Please check below code which applies System.Threading.Thread.Sleep(2000) for file to unlock. if (SPContext.Current == null) { //If the initial file length is 0, pause the ...


0

Usually Windows SharePoint Services puts a write lock on the document on the server when a document is opened. The write lock times out after 10 minutes. Users cannot modify the document during the time when the document is locked. Workaround: Check whether the file has been properly checked in or not. If not, refresh the page and try to check in the file ...


0

Both options require you to possible break interference and/or create custom permission groups. Option 1. Document sets might be a viable solution for you. Here You may also want to create an item for each student. You can then restrict their rights to read only and create so they can only see their work. Option 2. might be to run a 2010 workflow that ...


0

You could do this by creating a custom permission level for the Students, and granting them only Add, View and Open permissions, and not Edit or Delete. Here is a list of all the permissions available. An easy way to do it would be by copying the "Contributor" permission level, then going in and removing the Edit Item and Delete Item permissions on your ...


0

Out of the box you can use enable Item Level Permission. From UI this is available only for Custom Lists. But you can enable the same on libraries using PowerShell. This will not fully satisfy your requirements of not allowing delete. Your best option is using Workflow. Another option is to use Event Receivers.


2

To my understanding, when you enable rating feature in a list/library, Rating (0-5) column, a Number of Ratings column is also added to the list. Hence these columns will be associated with each list item. Technically, when a user (consider the user has contribute access) gives a rating to a document, the columns related to rating feature gets updated, which ...


0

Go to Read Permission level in Site Permission and check for Read permission if there is an option for rating enabled..If it is unchecked, check it and then try. Read permission ideally have the permission to rate


1

OK, if we don't have tagging and we don't have Designer for custom scripts, then we are left with some workaround. We can have a column as Mark with radio button Yes or No. User can select Yes to mark the particular document. Once marked, we can have a view to filter data based on MARK column and can show data with MARK as yes on a webpart. Other than this ...


0

Try to add ?web=1 behind the document path (... .doc?Web=1). Let me know if that fixes your problem.


2

This functionality will not work in Chrome. You'll need to use IE or FireFox.


0

You can either add PDF as allowed MIME type (recommended) or set File Handling to Permissive alltogether (not recommended). Here is an article that covers this topic: SharePoint: Browser File Handling Deep Dive And here's the Powershell script that allows you to add a MIME type to the list of allowed ones for a specific web application (taken from the ...


1

Create a group add the user with edit permission. You can give the unique permission level to that library or document.


2

Add a content editor webpart to your document library and insert the following code into it. <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js" type="text/javascript"></script><script type="text/javascript"> $(document).ready(function(){ $('#onetidDoclibViewTbl0 a').removeAttr('onclick').attr('target', '...


3

The is no password for list email addresses because they are no associated with AD user accounts. There is also no inbox because these are not Exchange email addresses. List email addresses act more like identifiers for the lists so SharePoint knows where to direct and store incoming email messages. You should have a connector in Exchange that routes emails ...


0

You should be able to add the query string parameter `Web=0' For example: https://sitename-my.sharepoint.com/personal/vignesh/Documents/SomePresentation.pptx?Web=0


1

The answer is none. As @Waqas pointed out you need the Office Web App server, which is a separate product from SharePoint. If you were running Enterprise - you would have access to Excel and Visio services, Standard edition come with none of that. By default when you attempt to open a file it will it open in the supported desktop applications (i.e. work,...


0

As stated a few times here - it can't be done from a single list/library, without some 3rd party help, or customer code. If you want to use only SharePoint you could do this by creating three lists. Your "source" which has all the data, and is locked down, and then two destination lists, which are populated from a simple workflow from the source list. ...


0

Use Titus' SharePoint Security if you really want to do item-level security. It's the only practical method for managing the administration of item-level security.


4

It depends where you want to Open & edit documents, in the browser using the Office Online server or you want to edit them on the local machine. Office Online Server is not configured by default, you have to setup a separate farm and connect it to the SharePoint server. Office Online Server Support Word, Exel, PowerPoints file types. if you have other ...


3

It is not SharePoint issue rather it is Office problem. You can disable this warning going by going to trust center settings of excel. Click the File tab. Click Options. Click Trust Center, and then click Trust Center Settings. In the Trust Center, click Macro Settings. Make the selections that you want. Click OK. Read more here: Change macro settings ...


1

According to a website I have found it's: Supported files for viewing: Word files: .doc, .dot, .dotx, .docx, .docm, .odt Powerpoint: .pot, .potm, .pps, .ppsm, .ppt, .pptm, .pptx, ppsx, .odp Excel .xls, .xlsx, .xlsm, .xlsb, .ods Supported files for viewing & editing: Word: .docx, .docm, .odt Excel: .xlsx, .xlsm, .xlsb, .ods ...


0

How you are adding the file? When you are adding any document in the library there is a path mentioned in the dialogue box where the files will go and reside. check if the path is correct or not. Might be you are adding in wrong way.Also go in Views and see you have selected the option as Show in Folder option. And yes Folder not recommended in SharePoint......


2

Reason is that your site is on HTTPS but you are loading jQuery from HTTP. That causes this error as this is mixed content and potentially unsafe. Change the link to jQuery to use HTTPS instead and the error will disappear.


2

Documents and folders all are treated as items. So the limit mentioned consist of all including folders as well. To test it, write a query which will return total count. and another query where item is not folder. It should show the difference. Which in terms say folders are also treated as items. PS: Folders also affects threshold limit.


1

You can create very large document libraries by nesting folders, or using standard views and site hierarchy. This value may vary depending on how documents and folders are organized, and by the type and size of documents stored. But there is no such limitation on folder creation in SharePoint 2013 Document library. But yes, your document library can ...


0

If your prod environment is on-prem, and you are not worried about it moving to the cloud, you could take advantage of that and write an event receiver that will fire on ItemCheckingIn, which would allow you to do exactly what you are trying to do - run some validation code against the file in question and reject the check-in if necessary. However, your ...


0

You could try to implement a Web Service that calls your client side code. You can then create a workflow via SharePoint Designer to call that Web Service on Check-In. If it passes, let it continue through the check-in process, if it fails, then reject the check-in. Working with Web Services in SharePoint Designer


0

EnableAssignToEmail property is not available in CSOM. So there is no way set incoming emails through CSOM but it's possible through PowerShell Scripts. https://officespdev.uservoice.com/forums/224641-general/suggestions/7402411-enableassigntoemail-list-method-missing-on-list-ob


2

As @spguy mentioned, having separate document libraries can also help. However, if that is not an option, you can consider using folders to limit the fine grained permissions.


2

Are you limited to a single document library? Depending on what kind of content you are storing, is there any way to split them up and have multiple libraries? Are the 2000 documents that are submitted each year all of the same type of document that they cannot be separated? If you can split any of the documents up into active and archived documents, then ...


1

Form fields may be hidden in EditForm.aspx of library. Navigate to EditForm.aspx page and append your item ID For example https://your site Url/libary name/Forms/EditForm.aspx?ID=Item ID Edit that page and see if there is any script editor/content editor web part added to hide fields. Another way is with the help of SharePoint designer. Open a particular ...


0

It could be the configuration of the columns in the list. Are you able to provide a screenshot of the columns that you expect to add? Are they hidden perhaps (do they show as hidden against the relevant content type in the UI, or they may be hidden in code)?


1

As per your requirement I think you can use Content Query WebPart/Content Search WebPart for the same. Because Content Query WebPart has a property to display data from Sub site too. Your question might be answered here Let me know if this solves your problem or you need some more assists.


0

I don't think so, because Documents are not stored a filesystem but in (rows in) a Database. These rows are chunks of data, not bytes. So the size of a Document is metadata (written on file upload/change), not space occupied in the database. That means total size of a Library can only be found with a loop Alternatively you could add your own ...


0

I had the same issue and followed the advice in this link. http://johnmhester.wordpress.com/2014/01/31/error-changing-a-site-title-in-sharepoint-2013/ basically it says to delete the site assets library and then press the title, logo and description link again. regards Daniel


0

On the source library, you can see if it contains any files that haven't been checked in by navigating to the Library Settings page, then clicking "Manage files which have no checked in version." Those files are only visible to the person(s) who uploaded them. If you want to bring them along to the destination library, you can take ownership of them and ...


0

Update the new document for the given ID and then update the Name property. Update The code is as follows. private static void UpdateDocumentAndRename(string DocumentLibraryName, string NewDocumentName, Uri SiteUrl, string DocumentToBeUploadedUrl) { using (SPSite Site = new SPSite(SiteUrl.ToString())) { using (SPWeb Web = ...


-1

When this option is set to Yes, SharePoint checks out a file when it is uploaded (created).


0

Might be it is considering the folders as a count. Check How many folders you have and create a view to have items without folder.


1

There are ways to hide the Upload Button using CSS or JavaScript but this is not recommended. I suggest creating a custom site content type that is associated with your InfoPath Form. This article provides a step-by-step process of Publishing your InfoPath Form to a Content Type and then associating the content type with a document library: http://www....


0

The Exchange email to SharePoint connector by cloud2050.com has a feature that can do exactly this. Here is screenshot of how to set it up. The selection for "Save files to a specific folder" will save all email attachments to a specific SharePoint folder.


0

While I realize this response is very delayed, it may help the next person. I am understanding this question as follows: A filter has been applied to an attribute of a folder, and while the folders filter properly in the view, the contents of the folder do not display when a specific folder is accessed. This is very easy. Modify the view, expand the ...



Top 50 recent answers are included