On Thu, Mar 25, 2010 at 11:56 AM, Nikita Koshikov <[email protected]> wrote: > Hello list, > > Our users often asking me - is it able to get full path to attached file. I'm > trying to change: > > --- ./program/steps/mail/compose.inc.orig 2010-03-25 12:29:55.000000000 > +0200 > +++ ./program/steps/mail/compose.inc 2010-03-25 12:30:27.000000000 +0200 > @@ -68,7 +68,7 @@ > } > // only a file path is given > else { > - $filename = basename($attach); > + $filename = $attach; > $attachment = array( > 'name' => $filename, > 'mimetype' => rc_mime_content_type($attach, $filename), > > But this didn't make the trick. Can anybody point me to right source file > where I will make modifications ? > > I don't see such feature in roadmap list, but is it planing to make > attachments be able opened/view on "composing" stage ? This will be great to > users who want to recheck if they attach exactly wanted filename. Due to > security issues maybe not open file on server - just store mapping: > "attached file" -> "local file", and open local file if user trying to view > data. > > Any thoughts ?
Yes, you need to fetch this on the client-side (through JavaScript/Flash) somehow. ;-) The code you edited is on the server, hence, it wouldn't know where the file came from. It would only contain the path on the server. Till > > One more thing - any chance to see multi-selection dialog while attaching > files or it's too difficult ? > _______________________________________________ List info: http://lists.roundcube.net/dev/
