Please open a ticket about this. Right now dal does not know you are
not plannit to do dbio.

You can try replace in dal.py

else:
                raise RuntimeError, "you must specify a
Field(...,uploadfolder=...)"

elif not self._db._uri is None:
                raise RuntimeError, "you must specify a
Field(...,uploadfolder=...)"

Let me know if this solves the problem.



On Nov 14, 7:42 am, Plumo <[email protected]> wrote:
> I wanted to make a comment on the book but a single line input box is used
> instead of a textarea.
> Should this be changed?
>
> Anyway, need to post here for now.
> I tried following the upload example in ch7.
>
> The docs specify:
> form.validate(...)
> is a shortcut for:
> form.process(...,dbio=False).accepted
>
> Then the examples use:
> form.validate().accepted
>
> This should just be:
> form.validate()
>
> Then I tried the SQLFORM.factory upload example with v1.99.2, and got this
> error:
> RuntimeError: you must specify a Field(...,uploadfolder=...)
>
> uploadfolder should not be required because I don't want to store the file.
>
> Richard

Reply via email to