Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Error uploading image, wrong file type
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error uploading image, wrong file type

 Post Reply Post Reply Page  <12
Author
omegaman View Drop Down
Newbie
Newbie
Avatar

Joined: 12 March 2011
Location: Calif
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote omegaman Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2011 at 9:45am
I have a slightly different issue. I feel certain it is addressed somewhere, but I cannot find it, so if it has been addressed and someone knows where, could you please point me to it.

I am a user on a forum that uses v.9.5. Many of the members there cannot upload images and avatars. Most of us can, out of 300 or so members, there are probable 30 that are really active posters, of the thirty, probably 5 cannot post images.

Since most of us can, I figure the problem is not with the forum software, but with some settings on their own computers. Does anyone have a solution to this that I can pass on to them? The administration  of those forums are inactive, and I don't think they know much about the software or care to. Anyway, I would appreciate it if someone can point me in the right direction and maybe help these people out.

Thanks a lot.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2011 at 10:20am
Same advise as to the original posted you need to upgrade to the latest release as there are known issues with uploading in 9.50
Back to Top
Jesper kick View Drop Down
Newbie
Newbie


Joined: 10 December 2007
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jesper kick Quote  Post ReplyReply Direct Link To This Post Posted: 12 March 2011 at 10:54am
Hi omegaman
I'am working on upgrading from version 9.50 to 9.70 due to this error.
The problem is in module: functions_upload.asp, which has changed in version 9.70.

A hack to solve the problem until you have upgratede is:
1. Find the section     '***  Security check for MIME change   **** (line 501)
2. Find the code lines (line 579)
        'If the file extension is not OK then delete file
            If blnExtensionOK = False Then file.Delete
3. Before this you insert the following lines
            If not blnExtensionOK then
                If lcase(right(strNewFileName,3)) = "jpg" or lcase(right(strNewFileName,4)) = "jpeg" or lcase(right(strNewFileName,3)) = "gif" or lcase(right(strNewFileName,3)) = "png" then
                    blnExtensionOK = vbtrue
                End If
            End If

Please remark: This hack overrules that security check, that the uploaded image file may not be an image.

good luck
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.