Hi, I'm a new user for LocalFS product. I have a form <form method="POST" action="processForm_localFS" enctype="multipart/form-data"> File or Image: <input type="file" name="filex" value="" /> <br /> <input type="submit" name="save" value="Upload" /> </form> and this is evaluated by the following DTML Method processForm_localFS : <dtml-call "REQUEST.set('new_id', ZopeTime().strftime('%Y%m%d%H%M%S'))"> <dtml-if filex> <p>Variable "filex" exists and has the value "<dtml-var "_.str(REQUEST.filex)">".</p> </dtml-if> <dtml-var REQUEST> <dtml-comment> <dtml-call "testerx.manage_upload( filex, new_id )"> where testerx is a LocalFS object. This returns: ============ Variable "filex" exists and has the value "". form filex <ZPublisher.HTTPRequest.FileUpload instance at e41414> How can I find the name and the path of the filex? Please can you send me some samples (or a link) about how can be used this LocalFS product? Kind regards Mihai
On Wed, Dec 11, 2002 at 10:56:12AM +0100, Coanda, Mihai wrote:
How can I find the name and the path of the filex?
Did you not get the answer I already posted to this list? name: filex.filename path: if you mean the path it came from on the filesystem, you can't. -- Paul Winkler http://www.slinkp.com "Welcome to Muppet Labs, where the future is made - today!"
participants (2)
-
Coanda, Mihai -
Paul Winkler