Question
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Last activity: 18 Nov 2016 16:25 EST
Max file upload size using dynamic system setting
In the attachments How can i restrict the file upload size using DSS? i have achieved file restriction through customize the "AttachFile" activity, but i wanted to achieve through DSS without customizing the "AttachFile" activity. Please help.
Using Pega 7.1.7
Thanks in Advance.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689956000/c7d8436c-e407-494e-a0b9-3e4520220ba6.jpg?itok=V-E9m_lT)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689956000/c7d8436c-e407-494e-a0b9-3e4520220ba6.jpg?itok=V-E9m_lT)
Pegasystems Inc.
AU
Hi Sateesh,
You may also have to copy pyMaxDragDropAttachSizeMB into your ruleset and set it to the same value as the DSS
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
PEG
IN
We have prconfig setting. Not sure whether DSS works fine or not.
MaximumFileUploadSizeMB
Type: integer
Default: 25
Functionality: This entry holds the size, in MB, of the largest file that can be uploaded into the PegaRULES database. NOTE: Files larger than 25MB are not recommended for uploading into the database. Files of this size put a strain on the system, and increase the chance that the server will spend all its time loading and unloading files (making the system look like it's under a denial-of-service attack).
If a user attempts to upload a file larger than this setting, the following error will occur:
"HTTP Status 413 - User attempted to upload a file larger than 25 MB. Please contact the System Administrator."
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
PEG
IN
Please refer https://community.pega.com/sites/default/files/help_v72/procomhelpmain.htm
If you attempt to upload a ZIP file when the ServiceExport
directory already contains a file of that name, a prompt appears. Click to confirm that you want to overwrite the existing file.
Using this facility, by default, you cannot use this form to upload a ZIP file larger than 1GB. This is an intentional design restriction on the HTTP file copy facility, not a limit on the rule import processing. For larger files, use File Transfer Protocol (FTP) or another means to place the file into the ServiceExport directory. Alternatively, you can set a higher (or lower) upload limit on your system by changing the value for the Initialization/MaximumFileUploadSizeMB
parameter in the prconfig.xml file.
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Yeh Thank you for the quick reply Gangababu.
I found this solution in pdn like, updating the prconfig.xml by adding the below code
Open prconfig.xml in a text editor and add the following entry (in this example, 10 MB):
<env name="Initialization/MaximumFileUploadSizeMB" value="10" />
But i am looking for the solution to achieve this using DSS, instead of updating the prconfig.xml file.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
PEG
IN
You may try adding the same setting in DSS as below.
Purpose: prconfig/Initialization/MaximumFileUploadSizeMB/default
Owning Ruleset: Pega-Engine
Value: 10
I am not sure whether it works or not. In settings it mentioned that it's a prconfig setting. Generally it is a standard way to convert prconfig to DSS as far as I know.
P.S: I didn't try this in house.
Accepted Solution
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689956000/c7d8436c-e407-494e-a0b9-3e4520220ba6.jpg?itok=V-E9m_lT)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689956000/c7d8436c-e407-494e-a0b9-3e4520220ba6.jpg?itok=V-E9m_lT)
Pegasystems Inc.
AU
Hi Sateesh,
You may also have to copy pyMaxDragDropAttachSizeMB into your ruleset and set it to the same value as the DSS
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Yeh Its worked Basavaraj. Thank you
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Yeh i tried with this, but didnt worked.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-08/47a10063-4d0d-4801-a15c-12477c277790.jpg?itok=KjhQBSbG)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/2023-08/47a10063-4d0d-4801-a15c-12477c277790.jpg?itok=KjhQBSbG)
UnitedHealth Group
IN
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
Thank you prasad. Its worked.
![](/themes/custom/pegacc_theme/images/user-icon.png)
![](/themes/custom/pegacc_theme/images/user-icon.png)
When the system settings rule pyMaxDragDropAttachSizeMB is modified and then it starts working.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Capgemini
SE
Hi,
File size limitaion only work for web by system setting rule pyMaxDragDropAttachSizeMB, how to solve in mobile?