Welcome Guest, Not a member yet? Register   Sign In
$_FILES Array getting empty when using $this->form_validation->run()
#45

yes, follow my example and understand it.

Copy the code in your editor.
I explain:
I don't use jquery, it's not important and not necessary.

If you want to pass all input , you must add class dropzone to your form.
After, you can call Dropzone.options.propertyForm=... (propertyForm is the camelized ID of the form element)


options uploadMultiple: true and parallelUploads are important.

DropzoneJS send a XHR request(Ajax) to the url (attribute action).
It send the $_FILES and $_POST.

because it's an ajax call, don't use redirect in your PHP code, use it in your javascript.
Reply


Messages In This Thread
RE: $_FILES Array getting empty when using $this->form_validation->run() - by hc-innov - 06-12-2019, 06:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB