Welcome Guest, Not a member yet? Register   Sign In
File upload fail on iphone safari ?
#3

(This post was last modified: 11-11-2014, 04:27 AM by Rufnex.)

I think you have to rename the uploaded filename each time, otherwise you allways overwrite it with the new on. you can set this bei the file_name hash. for e.g.

Code:
$this->load->helper('inflector');
$file_name = underscore($_FILES['file_var_name']['name']);
$config['file_name'] = $file_name;

or this should also work with a custom name logic

$config['file_name'] = 'your_file_name';

Look at http://www.codeigniter.com/user_guide/li...ading.html

Reply


Messages In This Thread
RE: File upload fail on iphone safari ? - by Rufnex - 11-11-2014, 02:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB