Rename filename which is upload using Flajaxian

Aug 18, 2009 at 1:56 PM

Hi,

        First, I'd like to also say how impressed I am with this control, it certainly suits what I needed but I have found some odd behaviour on selecting files.

 

       I want to rename filename which is upload using this control, how can this possible please reply me.

 

Regards,

 

Swapnil P. Jagtap

Coordinator
Aug 24, 2009 at 7:40 AM
<script runat="server">
protected void FileNameDetermining(object sender, FileNameDeterminingEventArgs args)
{
    args.FileName = "NewName.jpeg";//name not path and name
}
protected void ThumbNameDetermining(object sender, FileNameDeterminingEventArgs args)
{
    args.FileName = "NewName_thumb.jpeg";//name not path and name
}
</script>
<fjx:FileUploader ID="FileUploader1" runat="server">
    <Adapters>
        <fjx:FileSaverAdapter Runat="server" FolderName="UploadFolder" OnFileNameDetermining="FileNameDetermining" />
        <fjx:ThumbGeneratorAdapter Runat="server" OnFileNameDetermining="ThumbNameDetermining" MaximumWidth="200" MaximumHeight="200" />
    </Adapters>
</fjx:FileUploader>