)
There are up to 3 ways I know of to limit the uploadsize. There is the mentioned .ini settingt. You can add a special hidden form field with the name "MAX_FILE_SIZE" to the form and as value the maximum filesize. And last you can check the filesize after the file has been uploaded. Take a look at the code of the fileupload snippet to see how these 3 methods can be used.
Quote from: Raavi at Sep 13, 2006, 10:45 AMAs you can read above there’s no way of doing that in eFrom that I know of. You’ll have to dive into the php ini settings for that (upload_max_filesize I believe).
How can I set the maximum file size for an attachment?
I got that error all the time before, for me the solution was to empty cache in both MODx and my browser *after* fixing what was wrong in my syntax. Not much of a help, some one else can surely give you a better answer if you post your code.
Installed eform snippet and parser on my Modx 0.9.2.1 and I get the following error on execution:
I actually meant "using server validation" - ie adding validation to the form by using the &format= or eform tags, as I felt that it would aid comprehension if these were not included in the first example. However, your comments now explain everything very well. Thanks.
Don’t know about [adding] server validation though. In the current version eForm has some very basic validation but beside hacking the snippet there is not really any way of adding more server validation. Hopefully this will be added in a next version.
@Moderators
Maybe you in the beginning of this thread should somehow link to the information here given by TobeL.
Thanks to TobyL I have an idea whats wrong!
Help - I installed eForm (for my eyes proberly), i have a chunk
<form action="" method="post" name="EMAIL">
<p><input type="text" size="16" name="name" />Name</p>
<p><input type="text" size="24" name="email" />eMail</p>
<p><input type="text" size="24" name="message" />Nachricht</p>
<p><input type="submit" name="Senden" /></p>
</form>
a snippet
[[eForm? &to=`[email protected]` &gotoid=`2` &tpl=`KONTAKT` &formid=’EMAIL’]]
This discussion is closed to further replies. Keep calm and carry on.