There's nothing like that ATM. Add a feature request to the bug tracker, and
hound people to vote for it :). We would probably do it with a
ftRewriteFilename property or something.

Blair

On Fri, May 29, 2009 at 1:37 AM, Tomek Kott <[email protected]> wrote:

> Hi All,
>
> having recently updated to FC5.1.4 from 5.0.2, I noticed that the
> definitions for the function validate() for formtools/files.cfc changed to
> include some jQuery code. For my custom file formtool, I had basically
> copy/pasted the validate code and changed the directory and filename of the
> file upon uploading.
>
> I noticed, however, that if my custom formtool simply changed
> arguments.stMetadata.ftDestination to what I wanted, I would be half way
> there. However, I can't see a similar way of setting the filename that I
> want the file to have after upload. If I could change that in the arguments
> or stMetadata or something similar, then I could simply change those as
> needed, and call super.validate(), and then not worry every time the file
> formtool validate code is rewritten.
>
> So the question is -- is there any way to change the filename the file
> should end up with without losing the path to the file that is being
> uploaded? So for example:
>
> file to be uploaded: ~/Documents/mydoc.pdf
> file name on server: /files/#ftDestination#/<mynewfilename>.pdf
>
> Any ideas?
>
> Thanks,
>
> Tomek
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---

Reply via email to