Welcome Guest, Not a member yet? Register   Sign In
Several questions about file upload

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

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.

Theme © iAndrew 2016 - Forum software by © MyBB