×

Notice

The forum is in read only mode.

joobseeker upload photos extension uppercase

12 years 5 months ago #2322 by Jose
When a joobseeker save a photo with extension in uppercase (.JPG .PNG .GIF) this image can be save.

How can i allow with this formats???


Thanks

Attachment error.jpg not found

Attachments:
12 years 5 months ago #2325 by Super User
Hi,

It happen when JS Jobs can't upload photo.

Here is small fix
../components/com_jsjobs/models/jsjobs.php

function storeResume($jobid)

Find
$returnvalue = $this->uploadPhoto($row->id);
if($resumereturnvalue != 1){

Replace with
$returnvalue = $this->uploadPhoto($row->id);
if($returnvalue != 1){

Best regards,

Ahmad Bilal
12 years 5 months ago #2327 by Jose
Thanks rabilal

I didn't find your code

I found this, near line 5250

$returnvalue = $this->uploadPhoto($row->id);
if($jobid)$returnvalue = $this->visitorJobApply($jobid,$row->id);
if($resumedata == '') $this->sendMailtoAdmin($row_id,$data,3);//only for new
12 years 5 months ago #2328 by Super User
Hi,

After this line
$returnvalue = $this->uploadPhoto($row->id);

Add these lines

if($returnvalue != 1){
$resumedeletedata = $row->id;
$resumedeletedata = '';
$row->bind($resumedeletedata);
$row->store();
}

Best regards,

Ahmad Bilal
Time to create page: 0.194 seconds

Please publish modules in offcanvas position.