Hi, hoping to get some help here regarding my issue. In my (php) application I want my users to upload images inside their folder (myapp - their app folder). I can upload files, I can show a list of files...that's working great. But...
I want to retrieve (for the user) a list of links inside a folder (so his own files). For now I tried to get a list of files, loop through the list and get the link of each file seperately like this:
$getFiles = $dropbox->GetFiles("/try", false);
echo '<pre>'; echo print_r($getFiles); echo '</pre>';
if (!empty($getFiles)) {
echo "total files in this project = " . count($getFiles) . "</br>";
foreach ($getFiles as $file) { ?>
<a href="<?php echo $dropbox->GetLink($file, true); ?>"><?php echo $file->name; ?></a><br />
<?php
}
}
In a folder with 5 files it takes 5-10 seconds before every link is created....which of course is a bad user experience. Is there another way to do this or is this the only way (can't imagine it is).
Thanks in advance,
Danny