image-crud
image-crud copied to clipboard
php notice on upload
line 477: $old_file_name = $this->_convert_foreign_characters($_GET['qqfile']);
on upload, method is POST and no GET value sent along with url example POST http://localhost/img_crud/index.php/images_examples/example1/upload_file HTTP/1.1
this cause php notice error on server response, jquery cannot parse json string then message failed to upload show. but actually image already uploaded and save to database.
In any application which produces JSON I would recommend to hack CI core class to disable any kind of exception handling to prevent it from spitting HTML when its concerned - also always set_ini( error_reporting, 0 )
On 21 June 2013 05:59, leekung [email protected] wrote:
line 477: $old_file_name = $this->_convert_foreign_characters($_GET['qqfile']);
on upload, method is POST and no GET value sent along with url example POST http://localhost/img_crud/index.php/images_examples/example1/upload_fileHTTP/1.1
this cause php notice error on server response, jquery cannot parse json string then message failed to upload show. but actually image already uploaded and save to database.
— Reply to this email directly or view it on GitHubhttps://github.com/scoumbourdis/image-crud/issues/20 .
Regards,
Pavel Smirnov Director, *PAVEV Limited T/A ITERRA
- http://ie.linkedin.com/in/iterra
Phone: +353 (0)1 4433448, Mobile: +353 (0)87 6477666 Email: [email protected] Web: http://www.iterra.ie/ Registered address: 58 Aylmer Park, Naas, Co Kildare, Ireland Company registration number in Ireland: 493633, VAT#: IE 9776321F * IMPORTANT NOTE: *This is a confidential communication and is intended only for the addressee indicated in the message (or duly authorised to be responsible for the delivery of the message to such person). You are specifically prohibited from copying this message or delivering the same, or any part thereof, to any other person, whomsoever or howsoever, unless you receive written authorisation from us to do. If you are anyone other than the intended addressee, or person duly authorised and responsible for the delivery of this message to the intended addressee, you should destroy this message and notify us immediately. Please note that we accept no responsibility whatsoever in the event that this message or any other email message or any part thereof becomes known or is communicated to anyone other than the intended recipient or other person authorised in writing by us to receive it, howsoever arising and disclaim all liability for any losses or damage which may be sustained by any person as a result thereof.
Hello there,
Can you please tell me which is the notice that you have at your screen?
Thanks Johnny