I think the risk is that the path shows lots of information about how your
system is configured that is not necessary to transfer the file, so, for
example if uploading something from you My Documents folder on windoz, why
reveal what username you use for system signon, no sense leaving the door
open.

I would suggest you use something like a signed on user name to your site to
organize uploads, and not depend on where a given user stores things on his
system.

Warren Vail

> -----Original Message-----
> From: Dan [mailto:[EMAIL PROTECTED]
> Sent: Friday, November 30, 2007 4:40 PM
> To: php-general@lists.php.net
> Subject: [PHP] Re: PHP/AJAX File Drag&Drop
> 
> Unfortunatly javascript can't access the filesystem so it can't get
> filenames.  The closest way you could do something like this would be to
> use
> Java (not javascript, totally different).  It's a permissions thing, just
> the way JS and everything else is designed.
> 
> - Dan
> 
> ""Andrei Verovski (aka MacGuru)"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Hi !
> >
> > Anyone knows PHP/AJAX library which allows to get full path of file
> > dropped
> > into web browser's window area?
> >
> > It is required for document archiving system in order to avoid multiple
> > (or to
> > be more precise, almost endless) usage of "open file" dialogs from the
> > browser.
> >
> > Library should be compatible with Firefox (Lin, Win, Mac), IE and
> Safary.
> >
> >
> > Thanks in advance for any suggestion(s).
> >
> > Andrei
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to