CodeIgniter Forums

Full Version: Temp File Upload
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]ChazUK[/eluser]
Hi,

I was just wondering if it's possible to use the File Uploading Class to store temporary files, and not actually save the files to the server.

This is because I'm building a csv importer for a stats system, and I don't want the files to be stored.

Thanks

El Forum

[eluser]pistolPete[/eluser]
Have a look at http://ellislab.com/forums/viewthread/107702/.

El Forum

[eluser]ChazUK[/eluser]
Thanks PistolPete,

I'm currently using $_FILES directly, but I thought I might be able to benefit from using the Upload Class.

I'm doing var_dump($this->upload) after the upload, but it's just returning empty.

El Forum

[eluser]ChazUK[/eluser]
Sorry I wasn't putting $this->upload->do_upload();

But I don't want to specify an upload directory, because I don't want to upload it!