Questions tagged [document-library]

170 questions
1
vote
3 answers

how to limiting downloading file system via browser only through my web application

I need the best way to prevent any access to doc files when it is not my web application, for example, I need some files to be hidden from search engines or public users and only private users may reach and download them. I would like to save the…
Haim Evgi
  • 123,187
  • 45
  • 217
  • 223
1
vote
2 answers

Programmatically determine file types in SharePoint

Is there a way to programmatically determine a file type in SharePoint? I want to limit the types of files that are being uploaded into a document library. I have written an EventReceiver that on ItemAdding conducts the following - if…
esp
  • 239
  • 4
  • 18
1
vote
1 answer

Get rid of underscores in filename of the file to be downloaded

I have a file in alfresco document library containing whitespaces in its name, and I'm using IE8 which inserts underscores instead of the whitespaces when downloading the file. Is it possible to get rid of these underscores, and have the whitespaces…
user2554076
  • 77
  • 2
  • 8
1
vote
1 answer

Limit the number of available/visible Content Types in document libraries

Users seems to have a hard time picking the right document template when the "New" list contains a lot of items. Rather then displaying 50 items in the "new" dropdown list I am looking for a solution that will only show the documents which is…
Kasper
  • 1,710
  • 2
  • 17
  • 31
1
vote
0 answers

Get images from Liferay Document Library whose id is stored in separate databse table

I have an Employee table which stores details of Employees (name,date of birth etc) I have a field in Employee table named fileEntryId which stores the Id of the employee pics which are stored in DL in liferay. What I want to do is if the…
Seeya K
  • 1,221
  • 6
  • 27
  • 43
1
vote
1 answer

Iterate over images in Document Library in Liferay

I want to display images which are present in the liferay Document Library. How should I iterate to get all the images and display them? The code that I have right now is :
Seeya K
  • 1,221
  • 6
  • 27
  • 43
1
vote
0 answers

Bulk file upload creates multiple versions of all files except last file

I have an interesting (well to me anyways) problem here. I am doing a code based mass upload of documents into a SharePoint library with a twist. The twist is that the file's last modified date needs to be maintained in the item properties after…
1
vote
1 answer

How do I select which view when adding document library web part to a page in my site definition?

In my custom SharePoint 2010 site definition: I have a custom list instance in my site definition with multiple views... I have a page that I want to display one of the views on... In the page's Elements.xml definition, where can I select to show…
1
vote
1 answer

Can I have a custom document workspace for documents in a document library?

Is it possible to have a custom document workspace for documents created in a specific document library? I don't need every document library to have this custom workspace, just a single document library. For example, assume there is a "Movies"…
mcollier
  • 3,721
  • 15
  • 12
1
vote
3 answers

Integrating SharePoint document libraries into an ASP.NET page

Is there any way that I can use SharePoint document library and document sharing functionality from an ASP.NET page?
aYus
1
vote
1 answer

File Download through Struts action hangs a while

I am currently developping on a Liferay server. [liferay-portal-6.1.10-ee-ga1 + tomcat-7.0.25] In some cases my users download files from the Document-Library. What happens is that when they do so with the following type of…
Ar3s
  • 2,237
  • 2
  • 25
  • 47
1
vote
2 answers

Order of SPDocumentLibrary menu items using Custom_AddDocLibMenuItems

I'm adding a custom context menu item to documents (and not folders) in a SPDocumentLibrary list in SharePoint. The following code works, but always adds my custom menu item at the top of the context menu, which I don't want. I was guessing that the…
Matt Donald
  • 364
  • 1
  • 11
1
vote
1 answer

Set Initial version of a Sharepoint Doclib Item

I've got the following problem: I am creating a file during runtime. This file gets pushed to a document library. This works perfectly! But...I would like to set the version of this file. It gets set to version 1.0 but I would like to have it in 0.1…
Keenora Fluffball
  • 1,647
  • 2
  • 18
  • 34
1
vote
0 answers

Printing documents contained in a sharepoint document library

I need a way to print selected documents in a library from the ribbon. As I understand it, this will have to be done through scripting. So the main difficulty seems to be the fact that everything will need to be done client-side. Another not so tiny…
iris
  • 103
  • 3
  • 11
1
vote
1 answer

Is it easy to convert (about 15 lines of code) c# code to Powershell

I found this code online and wondering if it's easy to convert to Powershell. I am getting this error Missing expression after ','. At C:\AddaItem.ps1:60 char:73 + $newFile = $docLibrary.RootFolder.Files.Add($newDestinationFolderPath,…