Limiting File size while importing / deploying

Options
Hi,
I want to limit file size while importing the file into teamsite or it should check the file size while deploying so that a file upto a certain limit will only be deployed.
Do anyone have any idea how to accomplish this ?

Comments

  • You can do a CGI call out on your DCT, passing values such as allowed size, height, width etc.
    Then in your CGI script, you can do the same in more than one ways using perl.
    Google.
  • Thanks Mav for the suggestions.

    What in case i need to import a file of 10MB, and which i need to restrict to 2 MB at the time of importing itself ? So that the file should not get imported ? Any idea on this?
  • You need to write your own custom import functionality. Check this and this to start with.
  • Thanks a bunch Romil_rose. The links were very helpful.
  • Hi Bond,
    Did you try to resolve the issue ? I am also on the requirement. I tried to open the links provided by Romil_rose but the links dint open. Can you please provide with the content of the links ?

    Thank you

    Regards,
    Mohammed Anees

  • You can limit the file size allowed in the standalone.xml and have JBoss block them, or use ModSecurity if you have it enabled. Here's a document on increasing said limits - you can use the same setting to lower it.

    https://knowledge.opentext.com/knowledge/cs.dll/kcs/kbarticle/view/KB4175169

  • Hi Heather,
    Thanks for your response. I wanted to do this is at WebTop level so that i can restrict only for certain types. If I do this at Jboss/wildfly level then all the applications will get affected. Please let me know if you have any further suggestions.

    Thank you

    Regards,
    Mohammed Anees

TeamSite Developer Resources

  • Docker Automation

  • LiveSite Content Services (LSCS) REST API

  • Single Page Application (SPA) Modules

  • TeamSite Add-ons

If you are interested in gaining full access to the content, you can register for a My Support account here.
image
OpenText CE Products
TeamSite
APIs