Welcome Guest, Not a member yet? Register   Sign In
Problem with File Uploading Class
#3

[eluser]Larry Wakeman[/eluser]
I created a MU_Upload class and overrode _prep_filename as follows:

Code:
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* File Uploading Class
*
* @package        CodeIgniter
* @subpackage    Libraries
* @category    Uploads
* @author        ExpressionEngine Dev Team
* @link        http://ellislab.com/codeigniter/user-guide/libraries/file_uploading.html
*/
class MY_Upload extends CI_Upload {

    /**
     * Prep Filename
     *
     * The CI basic class modifies the file name of files with mutiple extensions, this is not what is needed
     *
     * @access    private
     * @param    string
     * @return    string
     */
    function _prep_filename($filename)
    {
        return $filename;
    }

    // --------------------------------------------------------------------

}
// END Upload Class

/* End of file Upload.php */
/* Location: ./system/applocation/libraries/MY_Upload.php */


Messages In This Thread
Problem with File Uploading Class - by El Forum - 06-17-2011, 03:44 PM
Problem with File Uploading Class - by El Forum - 06-17-2011, 04:05 PM
Problem with File Uploading Class - by El Forum - 06-17-2011, 06:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB