I'm using the Ion Koush Library in my android project, it is working fine but i don't know how to specify the key request when i use addMultipartParts function.
Ion.with(this)
.load("POST",UPLOADIMAGESTG_URL)
.setTimeout(5000)
.setMultipartParameter("omni_id", String.valueOf(omniTesteGrade.getOmniProduct().get_id()))
.addMultipartParts(files)
.asJsonObject()
.setCallback(new FutureCallback < JsonObject > () {
@Override
public void onCompleted(Exception e, JsonObject result) {
if (e != null) {
pDialog.setTitleText("Não foi possível enviar imagens, enviando dados do produto");
sendTgToServer(json);
}else {
pDialog.setTitleText("Enviando dados do produto");
sendTgToServer(json);
}
}
});
}else {
sendTgToServer(json);
}
Here is my code in Android, it is working fine in server side because i pick all the inputs with a laravel function Input::All() but when i want to pick specific request i use this code
foreach($fileObjects as $fileObject){
if(is_file($fileObject)){
$imageList[] = $fileObject;
}else {
$id = $fileObject;
}
}
And this is wrong one more process to server work and i don't want it, how can i make this work right?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire