Upload where sentence works with "fixed value" (below), but not when posting site parameter (now comment on code).
->where( function ( $q ) use ( $site ) {
//$q->where( 'site', $site );
$q->where( 'site', "342800010" ); // ONLY for Test
} )
I´ve try with $q->where( 'site', $site ); but don´t work
As you mencioned above, "That assumes that you are posting the site parameter to the server with the upload action.",
How I can to pass "site" to upload action (on what line/s)?
About to send "site" parameter to server-side, I´ve work on "ajaxData:.." on line 35, but I cannot get to past to server this parameter.
Can you tell me any idea?
Hi Allan,
Your are right , it´s works! ( was a mistake of my test, my apologies)
Let me a last question for well understand: the "site" parameter for upload action (and others parameters, if are needed) are sent on 35 line? (below).
Thank you for you help,
My Greetings.
ajaxData: function ( d ) {d.append( 'site', id_establecimiento() ); },
Answers
Allan,
Now, it seems to be working, let me do more range of test and I tell you soon.
My best greetings.
Allan,
Upload where sentence works with "fixed value" (below), but not when posting site parameter (now comment on code).
I´ve try with $q->where( 'site', $site ); but don´t work
As you mencioned above, "That assumes that you are posting the site parameter to the server with the upload action.",
How I can to pass "site" to upload action (on what line/s)?
Thank you!!
My code:
Hi Allan,
About to send "site" parameter to server-side, I´ve work on "ajaxData:.." on line 35, but I cannot get to past to server this parameter.
Can you tell me any idea?
Thank you!
Eduardo
That does look like it should work. Could you give me a link to a page showing the issue so I can debug it please?
Allan
Hi Allan,
Your are right , it´s works! ( was a mistake of my test, my apologies)
Let me a last question for well understand: the "site" parameter for upload action (and others parameters, if are needed) are sent on 35 line? (below).
Thank you for you help,
My Greetings.
Yes, you can modify the
FormData
object inside that callback by appending parameters to it, exactly has you have done.Allan
Hi Allan,
All right and take note.
Thank you for you help and for your time,
Greetings