this is my file upload code when i try to upload file which has size more than 75mb i can't upload file i did't get any error i also change php.ini file still its not working
$uploader = new Varien_File_Uploader('csvupload');
$uploader->setAllowedExtensions(array('csv'));
$uploader->setAllowRenameFiles(false);
$uploader->setFilesDispersion(false);
$path = Mage::getBaseDir('media') . DS . 'uploads';
$fname="customer.csv";
$uploader->save($path, $fname );
$filename = $uploader->getUploadedFileName();
can anybody give solution?
Best Answer
It's not Magento but PHP/server settings that are the issue. By default PHP has a much smaller max file and post size.
Check out this article on uploading large files. Via your
htaccess
you can change these values. Also make sure theexecution_time
is high enough to process the file