CodeIgniter Forums

Full Version: Several questions about file upload
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]bewhite[/eluser]
I have tried to use standard upload library and several tings are unclear for me:
1)I can find all file attributes in the $this->upload->data();, but where can I find the uploaded file content? Is it in the $this->upload?
2)How can I determine if file was uploaded or not?

Sorry, for these question but I'm still noob at CI Smile

El Forum

[eluser]xwero[/eluser]
The content doesn't get cached. If you want to get the content you have to depend on php native functions to catch the stream while uploading of do file_get_contents afterward.

the $this->upload->do_upload() method checks if the file is uploaded or not. Think of it as validation for uploads.