You might need to show some code. Assuming you have a DAL model with an 
upload field and are using SQLFORM to handle form submissions (and 
therefore uploads), web2py will automatically rename the file and store the 
new filename in the upload field. You need to get the transformed filename 
from the upload field of the record, and once you have that, the full path 
to the file is exactly as my code shows below.

Anthony

On Wednesday, July 8, 2015 at 8:53:41 AM UTC-4, reddyreddy wrote:
>
> Iam not sure how to use it.
> I guess I was not clear in my earlier question.
> For the files that were uploaded, I want full path of the each. Because I 
> want to give that path to the gcc so that my files get executed.
>
> Can you please explain me little more.
>
>
>
> On Tue, Jul 7, 2015 at 9:11 PM, Anthony <[email protected]> wrote:
>
>> os.path.join(request.folder, 'static', 'temp', filename)
>>
>> On Tuesday, July 7, 2015 at 5:40:39 PM UTC-4, reddyreddy wrote:
>>>
>>> Hello all,
>>>
>>> I want to get the full path of the files that were uploaded.
>>> Iam giving the uploaded folder as 'static/temp'  in db.py.
>>>
>>> Thankyou in advance.
>>>
>>>
>>>
>>>
>>>  -- 
>> 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].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Chaitanya Pochampally
>  

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to