I am making a app for SharePoint and have a form with several inputs for text and for files as well. The input for files works fine for regular files such as Word, Excel, PowerPoint, images etc... but wont work with videos. Is it possible to upload a video to a document library by code? Or cant you do that simply because the files is usually to big and would take long to upload?
The files is of the type
HttpPostedFileBase and sent by a normal mvc form.
And this is the code for uploading it to the folder
FileCreationInformation attachFileInfo = new FileCreationInformation(); attachFileInfo.ContentStream = pNewRequest.FileToUpload1.InputStream; attachFileInfo.Url = Path.GetFileName(pNewRequest.FileToUpload1.FileName); newFolder.Files.Add(attachFileInfo);