how to list uploaded files url in kinvey in a listview

  

this just gave me a headache, I’ve successfully uploaded multiple files to kinvey using BackendStorage components, the issue is i couldn’t get the files urlurl(_downloadURL) column. its probably different from getting data from collection.

I’ve tried this but no result!

procedure TForm1.Button1Click(Sender: TObject);;
var
LJSONArray : TJSONArray;
LItem: TListViewItem;
I: Integer;
begin
LJSONArray := TJSONArray.Create;
try
BackendStorage1.Storage.QueryObjects(‘Files’, [], LJSONArray);
ListView1.ClearItems;
for I := 0 to LJSONArray.Count-1 do
begin
LItem := ListView1.Items.Add;
LItem.Text := (LJSonArray.Items[I].GetValue<string>(‘_downloadURL’));
end;
finally
LJSONArray.Free;
end;
end;

Delphi XE8, Firemonkey, Android.

Comments are closed.