I would first suspect a security issue.
Have you confirmed that the folder exists? If so, does the file exist?
-Jim
On Tuesday, March 29, 2022 at 1:07:26 AM UTC-5 mostwanted wrote:
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/7f020315-e200-490f-a8f8-bf62461366dan%40googlegroups.com.