Results 1 to 2 of 2

Thread: TFmail attachment size limit? HELP

  1. #1
    Registered
    Join Date
    Dec 2008
    Location
    OC
    Posts
    2
    Rep Power
    0

    TFmail attachment size limit? HELP

    I'm currently making the switch from NMS FormMail to the NMS TFmail scripts.

    Does anybody know if there is an attachment size limit?

    As long as the files are SMALL (less than 1MB) they come through perfectly... at 1.1MB the form comes through BLANK?

    Is this something I can change, hopefully?

  2. #2
    Registered
    Join Date
    Dec 2008
    Location
    OC
    Posts
    2
    Rep Power
    0
    That always happens to me. FIgured it out minutes after finally giving up and posting a question.

    Anybody else that runs into this, there is a simple line of code in the TFmail.pl file

    The default number is 1000000 which is referring to bytes allowed, change that number to increase or decrease your max file size!

    Code:
    sub main
    {
       local ($CGI::DISABLE_UPLOADS, $CGI::POST_MAX);
    
       my $treq = NMStreq->new(
          ConfigRoot    => CONFIG_ROOT,
          MaxDepth      => MAX_DEPTH,
          ConfigExt     => CONFIG_EXT,
          TemplateExt   => TEMPLATE_EXT,
          EnableUploads => ENABLE_UPLOADS,
          CGIPostMax    => 1000000,
          Charset       => CHARSET,
       );

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •