We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1800
    • 52 Posts
    I need some help making an eform call that will let you attach a zip file. I will also need to be able to limit the file size that it can be...

    here is my stab at it... anyone see whats wrong?

    [+validationmessage+]
    
    <form action="[~[*id*]~]" id="contact" method="post">
      <input name="formid" type="hidden" value="contact" />
      <dl class="form">
    
        <dt><label for="cfName">Your name:</label></dt>
        <dd><input name="name" id="cfName" class="text" type="text" eform="Your Name::1:" /></dd>
    
        <dt><label for="cfEmail">Your Email Address:</label></dt>
        <dd><input name="email" id="cfEmail" class="text" type="text" eform="Email Address:email:1" /></dd>
    
        <dt><label for="cfRegarding">Regarding:</label></dt>
        <dd><input name="subject" id="cfRegarding" class="text" type="text" eform="Form Subject::1" /></dd>
    
        <dt><label for="cfMessage">Message:</label></dt>
        <dd><textarea name="message" id="cfMessage" eform="Message:textarea:1"></textarea></dd>
    
        <dt><label for="attachment">Attachment</dt>
        <dd><input class="field" type="file" name="attachment" accept="zip" eform="Attachment:file:0" /></dd>
    
        <dt><label> </label></dt>
        <dd><input type="submit" name="contact" id="cfContact" class="button" value="Send This Message" /> <input type="reset" name="reset" id="cfReset" class="button" value="Reset" /></dd>
    
      </dl>
      </fieldset>
    </form>
      Minneapolis Web Design <-- where i work
      MODx Templates <-- new project im working on
      • 36592
      • 970 Posts
      Don’t you have enctype="multipart/form-data" in your form tag ?
      For examples...
      <form action="[~[*id*]~]" method="post" enctype="multipart/form-data">