Some files will not upload to a doc library
Can you tell us about the types of document/files you're trying to upload? And are you trying to upload these straight from a DVD/CD or from your desktop?http://www.final-exodus.net
January 18th, 2011 3:20pm

If I create a folder in a document library and drag a directory structure into it, then everything uploads as expected apart from certain files that just get created but with zero size. The file type is not blocked. Some files of the same filetype upload successfully. There is nothing wrong structurally with the files that fail to upload. If I delete the empty file and try to upload again with only one of those which failed, then I see that the upload goes to completion then instead of displaying the library again as normal, it displays "web page not found". If I create a new folder or even a new document library and perform the same drag-drop operation from the beginning, then exactly the same files fail to upload. This happens in a consistent and reproducible way, BUT, all the files which fail to upload can be successfully uploaded as normal to a document library in a different site collection. Can anybody suggest where this problem might lie? It can't be the files themselves or even the document library.
Free Windows Admin Tool Kit Click here and download it now
January 18th, 2011 3:36pm

Some of the files which fail are .avi, one of them is an .mpg and some of them are .pdf docs. I've verified that at least some of the failing files are perfectly valid. There seems to be no relation to file size or type. The behaviour is consistent even if you upload them from the internal disks on the sharepoint server itself. Another really curious aspect of this is that if I take one of the failing pdf files for example and compress it into a zip file, it will still fail to upload.
January 18th, 2011 3:43pm

Are your files very big in size?? The problem you are stating was faced by also once, because my files were quite big. Trying changing the file size limit in Central Administration > Application Management > Web Application General Settings under header Maximum Upload Size and try again. My issue was solved to a certain extent by changing the Max file size to desired. But files more than 20 MB always had a problem which resulted in failure of document upload and page not found error. Hope this helps. Regards.
Free Windows Admin Tool Kit Click here and download it now
January 18th, 2011 4:12pm

Hi Badesaheb, I always set the max upload size to 2GB on all site collections as it's cumulative. If you upload multiple files then the total size must be under the limit. It's too much trouble to have the size limitation. I'm sure the problem is not the size as I can upload files very much bigger than those which fail. The problem you describe with the 20MB limit sounds like a different problem caused by the web server maxRequestLength. There are 3 places which cause sharepoint uploads to fail:- The Web Application max upload limit and the c:\inetpub\...web.config file and the 12-hive web.config file These limit IIS. Instructions for adjusting that limitation are here for example:- http://www.telerik.com/help/aspnet-ajax/upload_uploadinglargefiles.html
January 18th, 2011 4:52pm

How many web front end servers are there in your web farm ? It looks like some web page is missing in one of the web front end servers. can you run Fiddler when you face "web page not found" error ? This will help to identify which resource is throwing 404 reply I guess you have multiple WFE's if so then try reproducing the issue in each server(i.e., take a remote session in WFE1 reproduce the issue and the next WFE...) Aravind http://aravindrises.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
January 19th, 2011 5:06pm

Found the answer to this. It's in the web server security which is per web application. I'm not entirely clear about why some slightly bigger files than those that were failing uploaded OK but this little snippet below fixes it. Find the web.config file for the web application. It's normally something like:- C:\inetpub\wwwroot\wss\VirtualDirectories\<web app name> The </system.web> and the <runtime> are together in the default web.config so you insert this between them. <system.webServer> <security> <requestFiltering> <requestLimits maxAllowedContentLength="2147483649" /> </requestFiltering> </security> </system.webServer> For the benefit of anybody else with Sharepoint file upload problems, there are 2 web.config files: one is the 12-hive and one is in the C:\inetpub web application directory. The maxRequestLength and the execution time limit in the web.config need modified. This line works for me: <httpRuntime executionTimeout="999999" maxRequestLength="2097151" /> Add the code snippet above for the maxAllowedContentLength of the web server process. Follow the instructions of Badesaheb above to modify the total upload job size limit for the web application.
January 19th, 2011 5:32pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics