[Seaside] Filepath from fileUploadWithCallback

Mart-Mari Breedt breedt_m at aircom.co.za
Mon May 9 16:32:49 CEST 2005


Avi,

Thank you for your reply.

Is there a way I can get the whole path even when I am not using IE. It
seems that only IE return the whole path, and no other browser.

Thank you,
Mart-Mari

_____________________________________

 

Mart-Mari Breedt 
Software Development Engineer 
AIRCOM International (SA) 
Mobile: +27 82 859 3151 
Main: +27 11 745 1475
Direct: +27 11 745 1471
Fax: +27 11 465 1517 
E-Mail: mart-mari.breedt at aircom.co.za 
Web Site: <http://www.aircom.co.uk> 


-----Original Message-----
From: Avi Bryant [mailto:avi.bryant at gmail.com] 
Sent: 09 May 2005 02:47 PM
To: The Squeak Enterprise Aubergines Server - general discussion.
Subject: Re: [Seaside] Filepath from fileUploadWithCallback

On 5/9/05, Mart-Mari Breedt <breedt_m at aircom.co.za> wrote:

> Is there a way that I can use  fileUploadWithCallback to get the whole
> filepath?
>  
> I can see the whole file path in the edit box after browsing:

Most web browsers only send the file's name, not the whole path.  IE
on Windows does send the whole path, and you can get that by accessing
the fileName instance variable on WAFile directly, perhaps by adding a
method such as this:

WAFile>>basicFileName
  ^ fileName

You'll note that the normal #fileName accessor strips off the path if
it finds it, for consistency.

Avi
_______________________________________________
Seaside mailing list
Seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/listinfo/seaside



More information about the Seaside mailing list