Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Stop Upload at 1MB

2005-01-21
2013-03-27
  • I don't think there's an easy way to stop the client sending more data, but you can probably use an 'if' to stop outputting the data in upload.cgi:

    $size = -s "$user_dir/postdata";
    if ($size < 1048576) {
      print TMP $LINE;
      print POST $LINE;
    };

    (applies to v.1.35 - I don't use the 1.4x branch)