Hell thanks for this plugin, it works great!
I have a form where people van send a mail with an attachment, but for now it is very unsafe, they can send any file they want...
I would like to know where the attached files are uploaded (witch folder) and if these are removed automatically?
How do I:
- Make only pdf and word files uploadable?
- Make the max filesize 1MB?
- Maybe even check MIME types?
here my code:
<h2>Contact Form</h2>
<p>[[+fi.error.error_message]]</p>
<form class="form" action="[[~[[*id]]]]" enctype="multipart/form-data" method="post">
<input name="nospam:blank" type="hidden" />
<label for="name">
Name:
<span class="error">[[+fi.error.name]]</span>
</label>
<input id="name" name="name" type="text" value="[[+fi.name]]" />
<label for="email">
Email:
<span class="error">[[+fi.error.email]]</span>
</label>
<input id="email" name="email" type="text" value="[[+fi.email]]" />
<label for="subject">
Subject:
<span class="error">[[+fi.error.subject]]</span>
</label>
<input id="subject" name="subject" type="text" value="[[+fi.subject]]" />
<label for="text">
Message:
<span class="error">[[+fi.error.text]]</span>
</label>
<textarea id="text" cols="55" rows="7" name="text">[[+fi.text]]</textarea>
<label for="resume">CV bijvoegen:
<span class="error">[[+fi.error.resume]]</span>
</label>
<input id="resume" name="resume" type="file" value="[[+fi.resume]]" />
<br class="clear" />
<div class="form-buttons">
<input type="submit" value="Send Contact Inquiry" />
</div>
</form>