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
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 Topic: Error uploading image, wrong file type
    Posted: 02 March 2011 at 6:23am
Hi Web Wiz Forum

Normally there is no problems with uploading images of the file type .jpg, but some times I get the error message "wrong file types". I can see no clear connection with when I get the error message and the image files I try to upload.

The messages I get is:

Const strTxtErrorUploadingImage = "Error uploading image!!"
Const strTxtImageOfTheWrongFileType = "The image uploaded is of the wrong file type"

I think is due to the variable "blnExtensionOK" is set to false, but as far as I can see it is not set in the "Function fileExtension".

I am using ASP Upload.





Edited by Jesper kick - 02 March 2011 at 7:45pm
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: 03 March 2011 at 7:26am
What version of Web Wiz Forums are you using?

There is a known issue with older versions where images created and edited in newer Adobe software can cause the security filters to reject the image as Adobe now hides hidden XML within the images source code which can fire a false positive with the forums security filters scanning for malicious content hidden in the image source code.
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: 03 March 2011 at 7:11pm
Hi Bruce
I using version 9.50 of the Forum. Is there any specific files I have to user from ex version 9,7?
But there is also problems with old jpg files from eg. 2003, so maybe it is another problem?

It seems that the wrong error is generated in section
   '***  Security check for MIME change   **** in functions_upload.asp


Kind regards
Jesper Kick


Edited by Jesper kick - 03 March 2011 at 8:43pm
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 03 March 2011 at 8:22pm
The best bet would to be to upgrade your forum software - it would be safer and more secure to do so, even if it means ploughing through any modifications you may need to make
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: 03 March 2011 at 8:44pm
Hi MrTWS
A very good idea, but I have the usual error to many modifications



Edited by Jesper kick - 03 March 2011 at 8:57pm
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 04 March 2011 at 12:41pm
Hi JK
The differences between 9.50 and 9.70 are quite substantial, however, it is not an impossibility to actually make the jump. Providing you make a current BACKUP of the forum and database (as it is now), you could run the upgrade, and then work back in the modifications from there. Another alternative is to consider what another forum member did, when they asked me to run the new software on one of our test forums, work back in the modding they had done, and then we switched the software over that way for them. It was paid for (but it did not cost them a fortune), and now they have a upgraded software running without any issues, and best of it all, it still maintained nearly all of the characteristics they originally had, but with better security!

PM me if you might like to chat about this further
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: 04 March 2011 at 7:58pm
Hi  MrTWS
Thanks for your suggestions, I will think about it and return
;o) Jesper Kick
Back to Top
123Simples View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 July 2007
Location: United Kingdom
Status: Offline
Points: 1192
Post Options Post Options   Thanks (0) Thanks(0)   Quote 123Simples Quote  Post ReplyReply Direct Link To This Post Posted: 05 March 2011 at 7:21pm
You're welcome Jesper
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.