HI geoffo,
How to automatically capture the name of an image added to the Uploads Gallery?
1. Open file 'InsertImage.aspx' (CuteSoft_Client\CuteEditor\Dialogs\InsertImage.aspx)
2. Find section 'InputFile.ValidateOption.MaxSizeKB=secset.MaxImageSize;', add the section below under that section
InputFile.FileUploaded+=new UploaderEventHandler(InputFile_FileUploaded);
like:
InputFile.ValidateOption.MaxSizeKB=secset.MaxImageSize;
InputFile.FileUploaded += new UploaderEventHandler(InputFile_FileUploaded);
3. Add the section below into section <script runat="server"><script>
protected void InputFile_FileUploaded(object sender, UploaderEventArgs args)
{
InputFile.InsertText = args.FileName;
}
Note: args.FileName is the unload file name you want to capture
This way corresponds to the I'nsert Image' button
Regards,
Ken