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
great
ReplyDeletenot working please help
ReplyDeleteThanks for feedback.
DeleteIt will work. I always create blog tested and verified.
Please follow step by step. Still not working might be version compatible issue.
Thanks for feedback
ReplyDelete