• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uploading a .zip empty $_POST & $_FILES

#1
[eluser]Unknown[/eluser]
Hello !

I'm actually working on a small project, and I just came across a small issue !

I'm trying to upload a .zip from a form, nothing complicated, really.

But when I try to upload the .zip, my post and files data are blank ! When I try to do the same with a .jpg or anything else, it's working perfectly.

Same result without sending any files, it's working properly.

Here are my files !

View : http://pastebin.com/JXVwVjQT
Controller : http://pastebin.com/zZjFCGap

I don't know if this is a bug, or if I can somehow fix my code (if it's my fault !), but I'm lost right now Sad

Thanks for your work !

#2
[eluser]InsiteFX[/eluser]
Code:
if ($this->form_validation->run() == FALSE)
{
    // load your form view
}
else
{
    // process and redirect
}

#3
[eluser]Unknown[/eluser]
Sorry... I don't mean to be rude, but I know that...

But how am I supposed to process an empty array ?

CI is blanking my data when I upload a .zip, it can be processed in any way Smile

#4
[eluser]InsiteFX[/eluser]
Did you turn on error reporting?

Check an array for being empty!

Usally if it's a file and it is not being uploaded then, then it does not have enough memory and your php.ini file will need to be updated to reflect this!

Also why are you not using the CodeIgniter File Uploading Class?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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