Saturday, July 25, 2015

Orange HRM Attachment Size Exceeded Solutions

Orange HRM Attachment Size Exceeded Solutions



There are symfony validators that restrict the size of the uploading files. If you remove these restrictions, you'll be able to upload files of higher size (since you have already increased the PHP/MySQL/Apache settings related to file uploads). 

You can try the following steps:

STEP: 1

C:\Program Files\OrangeHRM\3.3.1\htdocs\orangehrm-3.3.1\symfony\plugins\orangehrmPimPlugin\lib\form\EmployeeAttachmentForm.php

change max size  100000 to 10000000.

'max_size'=>10000000), array('max_size' => __('Attachment Size Exceeded'))),

Restart Apache tomcat server.

STEP: 2

C:\Program Files\OrangeHRM\3.3.1\htdocs\orangehrm-3.3.1\symfony\plugins\orangehrmPimPlugin\modules\pim\templates\_attachments.php

change <input type="hidden" name="MAX_FILE_SIZE" value="1048576" />  to 
<input type="hidden" name="MAX_FILE_SIZE" value="5242880" /> 


STEP: 3

EDIT my.ini file on XAMPP
C:\program files\orangehrm\3.3.1\mysql
max_allowed_packet = 1M to max_allowed_packet = 5M


More Reference:-

http://sourceforge.net/p/orangehrm/discussion/660860/thread/9fa92842/
http://forum.orangehrm.com/viewtopic.php?f=12&t=10007

4 comments:

  1. Replies
    1. Thanks for feedback.

      It will work. I always create blog tested and verified.

      Please follow step by step. Still not working might be version compatible issue.

      Delete

Gitlab Automation Project Showcase

My GitLab Projects Showcase 🚀 Welcome to my portfolio of GitLab projects. Each repository reflects my journey as an engineer, focusing...