Thursday, October 17, 2013

SharePoint 2010 : Increase the Upload File Size Limit

שלום חברים,
היום נתבקשתי להגדיל את מגבלת גודל הקובץ שניתן להעלות לאתרי SP. כברירת מחדל SP מאפשר העלאת קבצים עד 50MB. (ישנה מגבלה ב-IIS שצריך להתחשב בה ולהגדיל אותה גם כן, ברירת המחדל היא 30 MB)
לכן, כאשר מנסים להעלות מסמך גדול , הדבר גורם לשגיאה הבאה :


סדר הפעולות לשינוי הגודל הוא :
צעד ראשון -
1 . להגדיל את המגבלה של SharePoint דרך הניהול המרכזי
ראשית, עליך להגדיל את המגבלה של ההעלאה ב-SharePoint 2010.
ניהול מרכזי ==> "ניהול יישומי אינטרנט " ==> בחר בשורת יישומים באינטרנט ( אל תלחץ על הכותרת , פשוט בחר Web Application ) ==>  "הגדרות כלליות" ==>  בשדה גודל העלאה מקסימאלי , שנה את ההגדרה לערך הרצוי ( 150 MB למשל בדוגמא שלנו ) == > לחץ על "אישור"


 עכשיו,יישום האינטרנט מצויד לקבלת קבצים גדולים , אבל IIS7 עדיין יחסום אותו, וכתוצאה מכך באותה הודעת השגיאה כאמורה לעיל. אז, בואו נעבור לשלב 2.

2 . להגדיל את אורך בקשת IIS7
השתמש בפקודה הבאה במחשב שפועל עליו IIS 7 :
%% \ system32 \ inetsrv \ appcmd סט -config סעיף windir : valueInBytes : requestFiltering - requestLimits.maxAllowedContentLength
במקרה שלנו , אנחנו פשוט נשים את 400150x1024x1024 = 157,268, בתים.
אתה תקבל הודעת אישור לאחר החלת הפקודה. נא לזכור כי אתה צריך להפעיל את cmd.exe במצב של מנהל מערכת.



 3 . להגדיל את TomeOut  - זמן חיבור IIS7 (אופציונלי)
עוד דבר אחד שיש לזכור הוא את הגדרות פסק זמן חיבור : כאשר מעלים קבצים גדולים. אם אתה רוצה , אתה יכול להגדיל את הזמן המוקצב לחיבור בערך גדול יותר. הסטנדרטי הוא 120 שניות. שלב זה הוא אופציונלי , אבל יכול להיות נדרש אם יש לך משתמשים בעלי חיבורי אינטרנט במהירות נמוכים.



פתוח IIS ==> בחר את יישום האינטרנט ==>  לחץ על הגדרות מתקדמות ==>  להרחיב את גבולות חיבור ==> הגדר את הערך החדש לחיבור בזמן החוצה ( שניות ) ==>

כעת תוכלו להעלות קבצים גדולים יותר :



בהצלחה !
רון נס.

============================================================================================================================================================================================================================================================


Hello Friends
Today I was asked to increase the file size limit for SP. By default SP allows uploading files up to 50MB. (There is a limit in IIS to consider it and increase it as well, the default is 30 MB)The Problem.
So, when trying to upload a big document, this results in the following error:

The good news is: This can be custom tailored to your needs, by simply following 3 steps. Here comes the first step:
1. Increase the SharePoint Upload Limit via Central Administration
First, you must increase the SharePoint 2010 upload limit.
Central Administration ==> “Manage Web Applications” ==> Select desired web ==> application row (don’t click on the title, just select)  ==> “General Settings” in the ribbon  ==> Under Maximum Upload Size, change the setting to the desired value (e.g. 150 MB in our example) ==> “OK”


Now, the web app is equipped for receiving large files, but IIS7 will still prohibit it, resulting in the same error message as above. So, let’s move on to step 2.

2. Increase the IIS7 request length
Use the following command on the machine you are running the IIS 7:
%windir%\system32\inetsrv\appcmd set config -section:requestFiltering -requestLimits.maxAllowedContentLength:valueInBytes
In our case, we’ll simply put 150x1024x1024=157268400 bytes.
You will receive a confirmation message after applying the command. Please bear in mind that you will need to run the cmd.exe in administrator mode.




3. Increase the IIS7 connection timeout length (optional)
One more thing to keep in mind is the connection timeout settings: When you upload large files, depending on your connection speed it can happen that the connection times out. If you want, you can increase the connection timeout to a larger value. The standard is 120 seconds. This step is optional, but can become required if you have users with low speed internet connections.

Open IIS ==> Select the Web Application ==> Click on Advanced Settings ==> Expand Connection Limits ==> Set the new value for Connection Time-out (seconds)


You users will now be able to upload larger files:



Good Luck :)
Ron Ness.


No comments:

Post a Comment