file upload + jquery |
[eluser]ibnclaudius[/eluser]
I'm trying to upload an image using jquery, but always getting the "echo 'fail';". I'm also using JQuery Ajax Form plugin: http://jquery.malsup.com/form/ My code: Code: <form id="new-update-attach-image-form" method="post" action="<?php echo site_url(); ?>/form/upload_school_update_image" enctype="multipart/form-data"> Code: public function upload_school_update_image() Code: newUpdateAttachImageOptionsUploadBox.change(function ()
[eluser]CroNiX[/eluser]
instead of just echoing 'fail', how about echoing the error(s)? Code: echo $this->upload->display_errors();
[eluser]ibnclaudius[/eluser]
I'm trying to get the file name, but no success Code: echo $this->upload->data('file_name')
[eluser]ibnclaudius[/eluser]
How I get a ke tisnide of it? Should echo $this->upload->data('file_name') not work?
[eluser]CroNiX[/eluser]
Code: $file_data = $this->upload->data(); |
Welcome Guest, Not a member yet? Register Sign In |