Results 1 to 14 of 14

Thread: Why can't I attach a cls file to a post?

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Why can't I attach a cls file to a post?

    I can attach frm, ctl, and bas files directly to a post so why can't I attach a simple cls file directly without first zipping it up?

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Why can't I attach a cls file to a post?

    We cant attach .cls, .res, .xls, .dot, .xlt, ...
    Is there a limit in the forum software for the allowed file extensions?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Why can't I attach a cls file to a post?

    Because someone has decided that certain file types are dangerous. I think I remember a recent virus that was spread in a cls file attachment to emails but I could be wrong.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Why can't I attach a cls file to a post?

    But if we allow a .doc file the that is just as dangerous as a .xls file. They bothpotentially could execute code.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Why can't I attach a cls file to a post?

    Yeah, as long as you have macros enabled, that is true. They are called Macro viruses.



    BTW: last time this was asked for, it was me who asked. And then Brads answer was (hope I am allowed to quote him..)

    Quote Originally Posted by brad jones
    In this forum software, you specify which file types can be uploaded. css is a type that hasn't be specified; however, it is a type that can be zipped.

    For the most part, files can be zipped, otherwise, we'd have people asking for new types to be allowed every day. The most comment types related to this forum are allowed to be uploaded -- such as txt, zip, bas, frm, cpp, asp, and rar. Others need to be stuck into a zip or rar file.

    Brad!


    ØØ

  6. #6

    Thread Starter
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Why can't I attach a cls file to a post?

    I really can't see how a cls file can be dangerous, since they are not executables. In that concept a bas file should be more dangerous anyway if you have an old BASIC interpretator installed. A doc file is also much more dangerous since it's a known fact that it could include macro viruses. I also think that Brad's comment doesn't really cut it in this case. I fully understand that you can't keep adding every type of file that people might want to be able to upload but you can today upload every type used in VB except cls files which I can only see as an oversight, someone simply forgot to add it.

  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Why can't I attach a cls file to a post?

    Maybe there was no cls files when the list was made...
    Last edited by NoteMe; May 13th, 2005 at 07:26 AM.

  8. #8

    Thread Starter
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Why can't I attach a cls file to a post?

    Quote Originally Posted by NoteMe
    Maybe there was no cls files when the list was made...
    No, cls files have existed since VB4 even though it was first in VB5 they really became useful.

  9. #9
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Why can't I attach a cls file to a post?

    Well never used VB4 so I have no idea. And I am not sure when the list was made either. All I know is that it wasn't in VB3 when I used that.



    ØØ

  10. #10

    Thread Starter
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Why can't I attach a cls file to a post?

    Well VB4 was released back in 1995, VB-World that started this forum didn't exist back then.

  11. #11
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Re: Why can't I attach a cls file to a post?

    Quote Originally Posted by MartinLiss
    Because someone has decided that certain file types are dangerous. I think I remember a recent virus that was spread in a cls file attachment to emails but I could be wrong.
    Thinking about this I realize that I have no basis for making that statement when it concerns VB Forums. At my last job we weren't allowed to attach cls files to notes in our internal mail system and "dangerous" was the reason given there. So as to why you can't attach them here I have to admit I have no real idea.

  12. #12

    Thread Starter
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: Why can't I attach a cls file to a post?

    Quote Originally Posted by MartinLiss
    Thinking about this I realize that I have no basis for making that statement when it concerns VB Forums. At my last job we weren't allowed to attach cls files to notes in our internal mail system and "dangerous" was the reason given there. So as to why you can't attach them here I have to admit I have no real idea.
    Well, you're one of the admins Marty... change it! Please.

  13. #13
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Why can't I attach a cls file to a post?

    Wouldnt it be best if all code attachments were in compressed format? Sometimes its a pain to view vb files in the VB IDE when
    viewing in notepad is faster and easier, at least for me.

    If its compressed I just view a particular file and use notepad. No possibility of any type of execution of code.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  14. #14
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Why can't I attach a cls file to a post?

    Quote Originally Posted by Joacim Andersson
    Well, you're one of the admins Marty... change it! Please.

    It would be nice!

    I have also done a little bit of checking myself and I can find no reference to any virus, trojan... etc that is spread through .cls files

    I found a few that are spread through .bas files but thankfully none through .cls files


    Quote Originally Posted by RobDog888
    Wouldnt it be best if all code attachments were in compressed format? Sometimes its a pain to view vb files in the VB IDE when
    viewing in notepad is faster and easier, at least for me.

    If its compressed I just view a particular file and use notepad. No possibility of any type of execution of code.

    Hmm, that is a good point though, unless the file makes use of the zip files actual code to do the execution, there are a few in the test labs that can do this... Thats why I try to use .rar - its much safer at the moment Although, never heared of any VB file that has done it

    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width