You cannot restrict the number of attachments the way you want to. You need an app, or a script likely does it. You can configure some advanced settings for zip files, for example. For more details, see Configuring file attachments.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.