Hot answers tagged

14

You cannot use the following characters in file/folder name: Tilde (~) Number sign (#) Percent (%) Ampersand (&) Asterisk (*) Braces ({ }) Backslash (\\) Colon (:) Angle brackets (< >) Question mark (?) Slash (/) Plus sign (+) Pipe (|) Quotation mark (") There are also restrictions about the positition of a character in a file/foldername: You ...


12

Here are the requirements for 'upload multiple files' The 32 bit version of Internet Explorer. The 64 bit version does not support it and neither do other, non IE, browsers. The STSUpld.UploadCtl IE add-in must be enabled. Office 2003 or newer on the client Client integration will need to be enabled for the web app. For details see this post.


8

Believe it or not, you can use Windows net use to map a sharepoint library to a drive letter! Then you can use plain old copy or xcopy or whatever. net use r: https://some.portal.org/documents [password] user:domainName\[username] copy c:\somefile.txt r:\somefile.txt Here is where I found that answer. I've done this, and it works like a charm. You can ...


7

It's not weird, it's by design. Attachments limit size is (if I remember correctly) also limited by the <httpRuntime maxRequestLength="size"/> element in web.config. Check that.


6

(This answer assumes you're asking how to implement a solution like which you're asking): Best way to do this I think is to create a new Content Type which inherits from Page, and includes a PublishingImage column, and maybe some other columns for the details. Make the various columns for the details Optional or Required as needed. When people create their ...


6

One method I've used to customize the upload page is to take a copy of upload.aspx and rename it to something like upload2.aspx. Keep it in the /layouts folder (or subfolder of) since it won't like being anywhere else. Once you have the copy, you can make your modifications as you like. The last step is to tell the upload menu items on the document library ...


6

There is an ActiveX control that is used to support multiple file uploading - that ActiveX control is installed with office.


6

@Kirk: Depending on your SharePoint version it should be sufficient to either install SharePoint Designer 2007 or 2010. Edit: Forgot to mention that SharePoint Designer is a free download from the Microsoft Website.


6

I had the same need and built my own jQuery widget... you can read more about it here: http://paultavares.wordpress.com/2012/04/28/sharepoint-ui-widgets-upload-and-pickusers/ The zip file has a self-contained demo that demonstrate the use of the upload plugin. Make sure you have all the prerequisites in place. Hope you find a good use for it. Paul.


6

Uploading Documents requires Active X Control so I would recommend you to use Internet Explorer with Active X control installed. The Active X control used for the multi document upload does not exist in a 64-bit version. The 64-bit Office version also does not include the 32-bit version of the active x controls. That's why it is recommend to use the 32-bit ...


6

You have to make three calls. The first uploads the file, the second retrieves the list item associated with the file that was just uploaded, and the third sets the field values function uploadDocument() { if (!window.FileReader) { alert("This browser does not support the HTML5 File APIs"); return; } var element = ...


5

I've been asked to do this, too, and there's no really good answer that I've come up with. If you hack the _layouts/upload.aspx page, it'll take effect throughout the Site Collection(s) on that WFE. (And you will no longer be in a "supported state", and an upgrade will clobber it, and hair will grow out of your palms.) You can, however, create a customized ...


5

SharePoint isn't a file share, it's web application. If you need a program to run from clicking in the browser, you will need to re-develop your application which currently resides as an exe to something more suited to web applications, like Silverlight.


5

You can cheat using Webdav : Copy-Item 'yourTemplate.stp' '\\yourspwebapp\DavWWWRoot\sites\yoursitecoll\_catalogs\lt' [edit] according your comment, here is a way to find the correct url. Navigate using the browser to the list template catalog list. The link should look like : http://yourwebapp/sites/yoursitecoll/_catalogs/lt as it is a document ...


5

WebDav might work for others, but I found a way to do it using the SharePoint object model. (I used the folders indicated by Steve B--thanks.) $site = get-spsite "http://myteam.lab/sites/team" $web = $site.OpenWeb() $spFolder = $web.getfolder("List Template Gallery") $spfilecollection = $spfolder.files $file = get-item c:\temp\MyTemplate.stp ...


5

You can access the content from the ItemAdding event by using Request.Files property of the context. Try something like this : HttpFileCollection files = HttpContext.Current.Request.Files; foreach (String key in files.Keys) { if (collection[key].ContentLength > 0) { Stream stream = files[key].InputStream; ...


5

The "Upload Multiple Documents" command is an ActiveX control. It does not work with Firefox, Chrome, Safari etc. Please see this article for details.


4

Have a look at this recent question 'What are the client side requirements to enable the “upload multiple files” link?' You can also upload multiple files using WebDav (Explorer View). Office is not required for that. See this question for requirements.


4

I just Binged it to be sure, but the control is only available if you have Office installed on the workstation, as it uses an ActiveX control provided by Office. Since you have Office installed, I'd suggest doing a repair on the installation to see if that fixes it.


4

I found a solution: http://spgeekchick.com/2011/02/13/sharepoint-2007-and-windows-7-cant-open-files-in-explorer-view-no-option-to-upload-multiple-documents-2/ My machine is 64-bit and this problem presents itself with the 64-bit version of IE9. When using the 32-bit version, the multiple document upload option is present. ...


4

Not sure about other examples but this one works for me (using application page) Application page markup contains: <input type="file" id="InputFile" runat="server" class="ms-fileinput" /> Code behind (eg. on button click): var fStream = InputFile.PostedFile.InputStream; var fileName = InputFile.PostedFile.FileName; var contents = new ...


4

I don't believe that you can as you mentioned, the file name change constitutes a new file and a new version history. You could always check out the 2003 version and upon checking it back in, state the file has been converted to a new format and the history ends. MyDoc.doc and MyDoc.docx are different files even though they may be the same content so ...


4

A possible solution could be: Create a new document library. Create a new permission level by copying an existing level. Eg. Copy the contribute permissions level with the name "Contribute - Only Upload" and remove the permission to update / delete documents and any other specific permission you do not wish to give. Create unique permissions on that ...


4

The order of the events if pretty clear (ItemAdding – ItemAdded – ItemUpdating – ItemUpdated, and others e.g. when you delete, emailReceived, WorkflowStarted, etc.), but how many there are triggered could differ depending on the application (e.g. WebUI, Word document Save as, and more important - custom implementations!). E.g. while working on properties ...


4

In my experience if you update the quota template it does not get applied to the sites that already use it. Through Central Administration apply another quota template to the site then reapply the previous one. If you have 100s or 1000s of sites to update you can use the following PowerShell. Hence, If you want to update the same template just set ...


4

It depends! SharePoint can easily handle that amount of data and that amount of files. But there is no "magic recipie" that you just apply to SharePoint and then upload all that data. You need to think of how these documents are going to be used (read/write scenarios), you should organize them in Site Collections and sites (and with that split out ...


4

You can use an HTTP PUT request to put document in the library. The code may be (adapt regarding your needs) : Uri destUri = new Uri("http://server/sites/mysite/myweb/mylibrary/document.doc"); using(FileStream inStream = File.OpenRead(@"c:\doc\document.doc")) { WebRequest req = WebRequest.Create(destUri); req.Method = "PUT"; req.Credentials = ...


4

There are custom events for incoming emails, have you looked for "Email events"? If you add such Event Receiver you might have to handle the item correctly as well, or else it will not be inserted properly. Like this: public class OnEmail : SPEmailEventReceiver { public override void EmailReceived(SPList list, SPEmailMessage emailMessage, String ...



Only top voted, non community-wiki answers of a minimum length are eligible