0
Under review

FileRun API — File Download

hello 7 months ago • updated 7 months ago 4

Tried the FileRun API but file download doesn't seem to work. How can I get that working? Also how can I get Mp3 path to play on a different platform? Please advise.

Under review

Does downloading files via the FileRun Android app works for you?


Also how can I get Mp3 path to play on a different platform?

How do you mean?

I'm using Android. Just the a web browser.


Also, I mean if I wanna have a music player to play the music file in drive, I need the full path of the mp3 file. How do I get that from the API?


Got it?

I'm using Android. Just the a web browser.

It does not answer my question.


Got it?

No.

The API test you have on GitHub: https://github.com/filerun/api-client
It has different method calls for different purpose. What I'm saying is this,  download file method doesn't work.

Its not downloading any file


//DOWNLOAD FILE
$rs = $FileRun->downloadFile(['path' => $relativePath.'/'.$fileName]);
if ($rs) {
    echo 'Downloading file '.$fileName.':<br>';
    echo '<div style="border:1px solid silver;background-color:whitesmoke;padding:5px;">'.$rs.'</div><hr>';
} else {
    exit('Failed to download file: '.$FileRun->getError());
}


Make sense now?