php - Joomla issue with custom form and file upload -
i have created form in view in default.php. looks below:
<form id="import_form" method="post" action="index.php?option=com_jobsearch&task=jobs.import" enctype="multipart/form-data" > <input type="file" name="xml_file" id="xml_file"/> <type="submit" id="import_submit" class="import_submit" value="import"/> </form>
i have created function called import
(for task) in jobs controller in controllers folder.
function import(){ echo time();die; }
this function accessible using below url
index.php?option=com_jobsearch&task=jobs.import
also when upload small size file works fine.
but when upload file size 50 mb. give below error after uploading done.
0 invalid controller: name='jobs', format=''
i have checked php.ini
, seems fine.
max_execution_time=20000 memory_limit=256m upload_max_filesize=256m post_max_size=256m
i found error shows front template when investigated found post form front index.php file not on administrator's index.php file.
please let me know doing wrong.
Comments
Post a Comment