⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

File Upload Issue



Ajeet Kumar
  • profile picture
  • Member

Posted 01 December 2015 - 10:38 AM

Thanks for creating  such a wonderful plugin. 

 

I just installed it and it is working like a charm. However I am getting error " An error occurred on uploading" while trying to upload image file. 

 

Please review following code and let me know how to fix it. 

 

 $crud->set_field_upload('logo_img_path', 'assets/uploads/brand_logos', 'jpeg,jpg, png');
 $crud->callback_after_upload(array($this, 'after_upload_pic'));

 

 

It seems that the POST is going to no existent action. Please see the attached screenshot. 

 

Do I have to create this function? can anyone guide me in the right direction?

 

Thanks,


Paul Savostin
  • profile picture
  • Member

Posted 01 December 2015 - 11:23 AM

First tip - you have 403 error,  https://en.wikipedia.org/wiki/HTTP_403

Second - you should use debuger tool like firefox, on tab "Network" y'll be able see what happens when you try to upload file