The file exists but only in the database but the folder in static doesnt 
exist, i thought the folder gets created with the first database entry

On Tuesday, March 29, 2022 at 2:00:18 PM UTC+2 Jim S wrote:

> 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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/3a76b0a1-048c-4ac9-8e63-f96379c64c6fn%40googlegroups.com.

Reply via email to