Filepath string manipulation help

mjakowlew mjakowlew at gmail.com
Thu Nov 3 08:01:00 EST 2005


Thanks guys. The os.path method works, but this is for a script for a
website upload program on a zope webserver. For some reason even admin
access won't let me run the script through the server.

The main issue with my script is that Firefox has no problem with the
program the way it is, but IE somehow uses a different filename format.

ex:/

In IE
filepath='c:\documents\web\zope\file.ext'

In Firefox
filepath='file.ext'

So when IE goes to upload the file, it gets an error for illegal
characters because of the "\"'s and ":" Is there another way to do this
(extract just the filename) using something else other than the "os"
that won't be blocked by the webserver




More information about the Python-list mailing list