perhaps you can use validators on form level.
e.g.

requires = IS_UPLOAD_FILENAME(extension='pdf')

ref:
http://web2py.com/books/default/chapter/29/07/forms-and-validators#Special-type-validators

best regards,
stifan

On Saturday, April 25, 2015 at 10:28:10 PM UTC+7, KevC wrote:
>
> Hi!
>
> I want to upload a file type .PDF in upload field but I only aceept this 
> type of file.
>
> What can I do?
>
>
>
> I hope you can help me.
> Best regards.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to