• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Several questions about file upload

#1
[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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.