I tried to change this line:
*Field('fileS','upload',uploadfolder=request.folder+'static/pdfs'))*
to this below

*Field('fileS','upload',uploadfolder=os.path.join(request.folder, 
'static/profile')) *

but still nothing works....!!!

On Tuesday, March 29, 2022 at 8:00:20 AM UTC+2 mostwanted wrote:

> Guys my app suddenly wont save PDF documents.
>
>
> *db.define_table('pdfs',                
> Field('fileS','upload',uploadfolder=request.folder+'static/pdfs')).*
>
>  The above code does not create static/pdfs folder as expected so when i 
> click on the link thats supposed allow me to view the pdf  *{{=A('Click 
> to view', _href=URL('default', 'viewer'))}} *it get an error *404 NOT 
> FOUND *!!!!
>
> Am i missing something or is there a workaround this issue?
>
> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/26c9382c-02f8-4e12-a0ed-231ef33bdb92n%40googlegroups.com.

Reply via email to