Author Topic: "Please Upload Valid JPG File"  (Read 2650 times)

Offline Dantes

  • Newbie
  • *****
  • Posts: 1
  • Karma: +0/-0
"Please Upload Valid JPG File"
« on: June 14, 2011, 02:00:00 AM »
phpEnter Web Hosting
I installed the script and everything looks just fine. However, when I try to create an account I always get this message/error "Please Upload Valid JPG File". I tried different sizes when I tried to upload the JPG file but no image is accepted. Is there any way to solve this issue?
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »

Offline alexa

  • Administrator
  • Full Member
  • *****
  • Posts: 255
  • Karma: +0/-0
Re: "Please Upload Valid JPG File"
« Reply #1 on: June 14, 2011, 09:36:20 AM »
Try to change CHMOD to 777 for folders uploads, maxthumb, minthumb.
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »

Offline nawthun

  • Newbie
  • *****
  • Posts: 1
  • Karma: +0/-0
Re: "Please Upload Valid JPG File"
« Reply #2 on: July 15, 2011, 04:36:20 AM »
I am having the same problem with trying to upload jpg files?  It keeps telling me "Please upload valid jpg file"???
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »

Offline alexa

  • Administrator
  • Full Member
  • *****
  • Posts: 255
  • Karma: +0/-0
Re: "Please Upload Valid JPG File"
« Reply #3 on: July 16, 2011, 01:43:01 AM »
Find this code, signup.php (line159), post.php (line140)

Code: [Select]
if (($extension != "jpg") && ($extension != "jpeg")) {
Replace with this code:

Code: [Select]
if ($extension != "jpg" || $extension != "jpeg" || $extension != "JPG"){
« Last Edit: January 01, 1970, 03:00:00 AM by Guest »