I'm uploading my files to Amazon S3 and don't need to store them locally. Instead of using unlink() or cron jobs I want to add the files to the tmp folder and send them to Amazon S3 from there. I tried specifying the path in config options:
$tmp = ini_get('upload_tmp_dir');
$config['upload_path'] = $tmp;
and I get an upload error:
The upload destination folder does not appear to be writable.
I made my tmp folder writable and still get the error. Does anyone know how to upload just to tmp folder using the CI upload library? I'm afraid that I might have to modify the core upload library removing all upload path functions.
/tmp/in the filepath seems to work/tmp/in path appears to work. I can get the filename using$this->upload->file_nameand gives me the tmp_name.