Question
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
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
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."
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.
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.
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
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
Yeh Its worked Basavaraj. Thank you
Yeh i tried with this, but didnt worked.
UnitedHealth Group
IN
Thank you prasad. Its worked.
When the system settings rule pyMaxDragDropAttachSizeMB is modified and then it starts working.
Capgemini
SE
Hi,
File size limitaion only work for web by system setting rule pyMaxDragDropAttachSizeMB, how to solve in mobile?