HUGE BUG in version 4.2 ?

Last post 10-12-2005, 3:10 AM by silicoNimagE. 5 replies.
Sort Posts: Previous Next
  •  10-03-2005, 7:24 AM 11294

    HUGE BUG in version 4.2 ?

    Hey. 
    I received version 4.2 from Karen, but this time I can not upload anything else than images...

    I went through your code and found the following :

    [CODE SNIPPET from filePost.asp] 
    For Each File In Uploader.Files.Items
                if ValidFileName(File.FileName) = false then
                      Response.Write "<font color=red><b>File name not supported!</b></font><br><br>Please keep the file name one word with no spaces or special characters."
                ElseIf ValidFileExtension(File.FileName) = false then
                      Response.Write "<font color=red><b>File format not supported!</b></font>"                                               
                else
                    ... etc ...
    [/SNIPPET]
     
    The ValidFileName method looks like this :
     
    [CODE SNIPPET from filePost.asp] 
    Function ValidFileName(str_FileName)
          Set RegularExpressionObject = New RegExp
          With RegularExpressionObject
                .Pattern = "^\w+\.(gif|jpg|jpeg|png|bmp)$"
                .IgnoreCase = True
                .Global = True
          End With
         
          ValidFileName = RegularExpressionObject.Test(str_FileName)
    End Function
    [/SNIPPET]
     
    So, even if you specify all accepted file types in ValidFileExtension and ValidMedia, you will never be able to upload them !?
    Only gif, jpg, jpeg, png and bmp files are accepted !?
     
    Regards.
    K.
  •  10-05-2005, 9:28 PM 11462 in reply to 11294

    Re: HUGE BUG in version 4.2 ?

    Please try the demo here:
     
     
    If you don't have problem with the above example.
     
    Please download the control again.
     
    Keep me posted.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-11-2005, 9:18 AM 11622 in reply to 11462

    Re: HUGE BUG in version 4.2 ?

    I haven't been able to try a new download yet, but I will try it asap.

    The last download link I received was on 29 september for version "***********", which had the strange behavior as described above...
    How is it possible that it would again be a wrong version download that I received from Karen ???

    The client wasn't very happy about the persisting problems, so I had to go work on location in Luxemburg :(
    So now, I'm not happy at all...
     
    Is there any way to receive some more direct support, not by ways of this forum ?
     
    Thank you.
    K.G.
  •  10-11-2005, 9:25 AM 11623 in reply to 11622

    Re: HUGE BUG in version 4.2 ?

    I just downloaded the zip again, the filepost.asp code has indeed been changed now (the JS regex stuff).
    I'm confident this will solve that problem then :)

    QUESTION:
    Why doesn't Cute Editor use a property to set accepted document types ?
    e.g. 
        editor1.AcceptedDocTypes = "doc,pdf,xls"
        editor1.AcceptedImageTypes = "jpg,bmp,png"

    Wouldn't that be better/simpler in use than having to edit the filepost.asp page ? 

    Anyway, thanks for the update.
    However, I still have other bug reports from my client, I will start a new thread for those.
    K.
  •  10-11-2005, 11:33 AM 11635 in reply to 11623

    Re: HUGE BUG in version 4.2 ?

     silicoNimagE wrote:
    QUESTION:
    Why doesn't Cute Editor use a property to set accepted document types ?
    e.g. 
        editor1.AcceptedDocTypes = "doc,pdf,xls"
        editor1.AcceptedImageTypes = "jpg,bmp,png"

    Wouldn't that be better/simpler in use than having to edit the filepost.asp page ? 
     
    We will take care of this issue in the version 5.0.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  10-12-2005, 3:10 AM 11664 in reply to 11635

    Re: HUGE BUG in version 4.2 ?

    Thank you.
    I will submit the bug reports of my client later, I will first double check if it aren't problems I can fix myself.
     
    Talk to you later :)
View as RSS news feed in XML