I deleted the file copied the code to sublime and saved it with encoding: "UTF-8" instead of "UTF-8 with BOM".
But nothing changed it still doesnāt work. Or isnāt it about the view instead of another file? I builded the form with gii where the upload is within.
Hi, Kartik! I was looking for solution of my problem and couldnāt find it
I am trying to use multiple fileinput with ajax (usin uploadUrl option).
So, I canāt make my code to work correctly. All I need is:
to click on "browse"-button and select several photos
or
open some folder and drag&drop this files to the current field.
if 1 - I receiving array of files and itās workās almost correctly except one thing - if I remove some of added files before click on form-submit button I am getting empty array of files.
if I drag and drop files, I am getting an empty array of files in my controller if I click on form-submit button, but if I press Upload button - action in controller getting post with files. But this way is not good for me, I will hide Upload button and gonna use only form-submit button.
So the question is: how can I tie an ajax form with form submit button? Or I only can to use fileinput without ajax drag and drop featureā¦