[web2py] Re: Unable to save pdf documents in my app

2022-03-29 Thread mostwanted
Yes they do

On Wednesday, March 30, 2022 at 4:57:01 AM UTC+2 Jim S wrote:

> Does the user that is running the web2py server have rights to create the 
> directory and files inside that directory?
>
> -Jim
>
>
> On Tuesday, March 29, 2022 at 9:51:42 PM UTC-5 mostwanted wrote:
>
>> Yes it is
>>
>> On Tuesday, March 29, 2022 at 9:41:43 PM UTC+2 Jim S wrote:
>>
>>> 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/07196fcf-3643-4bc7-9605-9fbdef72bab8n%40googlegroups.com.


[web2py] Re: Unable to save pdf documents in my app

2022-03-29 Thread Jim S
Does the user that is running the web2py server have rights to create the 
directory and files inside that directory?

-Jim


On Tuesday, March 29, 2022 at 9:51:42 PM UTC-5 mostwanted wrote:

> Yes it is
>
> On Tuesday, March 29, 2022 at 9:41:43 PM UTC+2 Jim S wrote:
>
>> 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/c3dfde99-e3d8-4c1e-b2cd-b7f07bd1d6een%40googlegroups.com.


[web2py] Re: Unable to save pdf documents in my app

2022-03-29 Thread mostwanted
Yes it is

On Tuesday, March 29, 2022 at 9:41:43 PM UTC+2 Jim S wrote:

> 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/53f1947b-b25b-40d7-b26a-71ca031cf5efn%40googlegroups.com.


[web2py] Re: Unable to save pdf documents in my app

2022-03-29 Thread Jim S
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.


[web2py] Re: Unable to save pdf documents in my app

2022-03-29 Thread mostwanted
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.


[web2py] Re: Unable to save pdf documents in my app

2022-03-29 Thread Jim S
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/7f020315-e200-490f-a8f8-bf62461366dan%40googlegroups.com.