Since I could not find a way to load the URL along with the list of files. The work around will be to list all the files without calling $object->media() for each element. Instead, call this method on the file that the user has selected to download. A simple quick function would be something like this:
function getDBDownloadUrl($Path){ try{ $mdb = new MyDropbox(); $download = $mdb->media($Path); $download = $download['body']; return $download->url; } catch(Dropbox\Exception $e){ return array("error"=>1, "message"=>"There was a problem accessing file download URL from dropbox"); } }
source share