Question

To Restrict Max File Upload through DSS for pyMaxDragDropAttachSizeMB
I have been working on to override prconfig file property for initialization/maximumfileuploadsizemb through DSS, and I see Same Question has been asked by other Developers as well but I don't see any feasible solution, So can anyone please help me out and also paste out the screenshots if it's working at your end.
***Edited by Moderator: Lochan to update platform capability tags***
-
Like (0)
-

Did you also set the pyMaxDragDropAttachSizeMB system setting?

Yes I have that as system settings as well so Do I need to Delete that to make it work from DSS ?

No, it should work but I think they would need to be in sync. What version are you using?

The Owning-Ruleset would be Pega-Engine for the maximumfileuploadsizemb DSS. I included a screen shot in a prior post when I created it in my system for testing.

Something I created as an example to check but it's not working.
Did it worked for you ?

Hi,
Could you kindly create DSS pyMaxDragDropAttachSizeMB with owning ruleset as "Pega-ProcessEngine" of value "nn" and also set the below in prconfig.xml file?
<env name="Initialization/MaximumFileUploadSizeMB" value="nn" />
Kindly make sure the value is same both in DSS and also in prconfig.xml
Hope this helps you achieve the requirment.
Regards,
Priyabharathi

if We keep DSS and prconfig.xml Value same then why we need DSS.

Hi,
As per the below support article it is recommended to make sure the value is same in both DSS and prconfig.xml
https://community.pega.com/support/support-articles/issue-pega-attachment-functionality
Hope this helps in resolving the issue.
Regards,
Priyabharathi

Please if anyone can assist on this as I am not able to get the solution to it yet.

Hi Salil,
As stated in the history of pyMaxDragDropAttachSizeMB that the Usually it is best practice to specify a size which is less or equal to initialization/maximumfileuploadsizemb value in prconfig. This is to ensure both values are in sync.So Please set value of pyMaxDragDropAttachSizeMB equal to or less than maximumfileuploadsizemb.
Thanks,
Abhinav

I already Tried that but still seems to be taking the Value from System Settings and Doesn't seems working

Hi Aditya,
Can you try to remove DSS and add entry only in prconfig.Please update me after that.
Thanks,
Abhinav

Can I make pyMaxDragDropAttachSizeMB as DSS, Please if anyone had success in that.

Hi Salil,
There is no dss named as pyMaxDragDropAttachSizeMB ,Instead you have below dss.
Purpose: prconfig/Initialization/MaximumFileUploadSizeMB/default
Owning Ruleset: Pega-Engine
Hi Salil,
There is no dss named as pyMaxDragDropAttachSizeMB ,Instead you have below dss.
Purpose: prconfig/Initialization/MaximumFileUploadSizeMB/default
Owning Ruleset: Pega-Engine
Value: 10
Can you let me know prpc version?
You may also have to copy pyMaxDragDropAttachSizeMB into your ruleset and set it to the same value as the DSS.
Thanks,
Abhinav