CodeIgniter Forums
Several questions about file upload - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Several questions about file upload (/thread-4056.html)



Several questions about file upload - El Forum - 11-05-2007

[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


Several questions about file upload - El Forum - 11-05-2007

[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.