I think the folder would be created.  However, the security must be setup 
properly for it to happen.

Is this on a production box?  Linux?

-Jim

On Tuesday, March 29, 2022 at 2:37:23 PM UTC-5 mostwanted wrote:

> 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/60df3d41-2b00-47e0-9a9f-69e08c918cc9n%40googlegroups.com.

Reply via email to