PDA

View Full Version : Force Upload Filename


rooster
07-06-2009, 04:54 PM
Is it possible to force the name of the uploaded file to be a certain name?

So, assume a directory is restricted to foo/bar and the user is allowed to upload a file name foo.bar.txt, but when it is uploaded, the name is saved as bar.txt ? Possible?

vglass
07-07-2009, 03:01 PM
Hi,

This is not possible. The closest thing possible is to use the tempExtension variable which will append a temporary extension to any file uploaded.

This is described more here:

http://www.jscape.com/sftpapplet/docs/HTML/connectionparameters.html