Hi! I have a problem while I wanna download a file from database. I dont 
wanna save the file in the folder 'uploads', I wanna save it in my 
database. I use this example.

db.define_table('libro',
    Field('titulo','string', 
requires=IS_NOT_EMPTY(error_message='Introduzca título'),label='Titulo'),
    Field('archivo','upload',uploadfield='archivo_bd, label='Archivo .PDF', 
 requires= IS_UPLOAD_FILENAME(extension='pdf',error_message='Archivo 
invalido')),
    Field('archivo_bd','blob'),
    Field('hecho_por',db.auth_user,default=auth.user_id, 
writable=False,readable=False)
)

I do a clic on the link and the file download but, I wanna open the file 
but the message says that file is damage or extension not compatible. Why?


My 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