On Monday, April 2, 2018 at 9:22:51 AM UTC-7, Diego Tostes wrote: > > Hi, > > > i have a table in my model called ensaios: > > Ensaios = db.define_table('ensaios', > Field('codigo_registro', 'string'), > Field('url', 'string'), > Field('titulo_pt', 'string'), > Field('titulo_en', 'string'), > Field('tags', 'text'), > Field('contato_publico', 'string'), > Field('email_contato_publico', 'string'), > Field('pt_pdf', 'upload'), > Field('en_pdf', 'upload'), > Field.Virtual('relatorio', lambda row: A('Relatorio', > _href=URL('default', > 'ensaios', > vars=dict(ensaio_id= > row.ensaios.id)))), > ) > > > i will store pdfs from clinical trials. the problem is that i already have > more than 5000 pdfs. > > i tried to put all the pdfs inside of the > "web2py/applications/ensaiosclinicos/uploads" > > and did insertions of the names of the files in the database. But I am > getting a error : > > 404 NOT FOUND > > What are you doing that returns a 404 error? Is this during the insertion or during an attempt to retrieve the file?
> Is it possible to do this ? > > I mostly have the problem going the other way ... deleting rows (and their files) that are either development-test files or excessibely obsolete. > > rgds > > Diego > > Dave /dps -- 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.