Using os.path.basename on C:\Documents and Settings\lamt\Desktop
\20070905.jpg  still return C:\Documents and Settings\lamt\Desktop
\20070905.jpg on a linux machine. Jsp/java upload mechanism does not
seem to have this problem though.



On Oct 2, 6:13 pm, "Florent Aide" <[EMAIL PROTECTED]> wrote:
> On 10/2/07, Chris Miles <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 2 Oct 2007, at 14:49, Thierry wrote:
>
> > > I'm following the file upload tutorial:
>
> > >http://docs.turbogears.org/1.0/FileUploadTutorial
>
> [...]
>
> > You just need to handle both cases on the server side.
>
> os.path.basename is a really good thing to use here... Maybe we could
> add it in standard in the wiki pages for this tutorial...
>
> Cheers,
> Florent.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to