On Friday, October 4, 2019 at 12:07:06 PM UTC-7, jim kaubisch wrote:
>
> Hi
>
> In a file upload, I want to store both the original filename AND the path 
> to the original file (to cover the case of files with the same name but 
> from different folders)
> I'm successfully getting the filename from 
> "request.vars.the_file.filename" as documented, but is there somewhere I 
> can retrieve the path?
>
> Thanks
>


If you want the path on the client machine, no can do.  Browsers don't 
share this as it is a privacy/security issue. The client filesystem is 
opaque to the server.  

You can ask the client to enter the value themselves as an explicit field 
on your form, but they may choose not to, especially if they are concerned 
about the privacy/security issue.

 /dps

-- 
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/896c66e7-c4bf-499d-9fbb-467a78266ce8%40googlegroups.com.

Reply via email to