Skip to main content
deleted 30 characters in body
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

NeedI need a function in my module for users to download a file from a private filesystem.

$file : "private://sample.csv"

Which function should be used:, file_download(), or    file_transfer($uri, $headers);  ?

function file_download_page() {
  $file = "private://sample.csv";
  //code for downloaddownloading $file
}    

Please provide a sample code.

Thank you

Need a function in my module for users to download a file from a private filesystem.

$file : "private://sample.csv"

Which function should be used: file_download() or  file_transfer($uri, $headers);  ?

function file_download_page() {
$file = "private://sample.csv";
//code for download $file
}    

Please provide a sample code.

Thank you

I need a function in my module for users to download a file from a private filesystem.

$file : "private://sample.csv"

Which function should be used, file_download(), or   file_transfer()?

function file_download_page() {
  $file = "private://sample.csv";
  //code for downloading $file
}    

Please provide sample code.

Need a function in my module for userusers to download a file from a private filesystem.

$file : "private://sample.csv"

$file : "private://sample.csv"

Which function should be used: file_download()file_download() or file_transfer($uri, $headers); file_transfer($uri, $headers); ?

function file_download_page() { $file = "private://sample.csv"; //code for download $file }

 

Please a sample code.
function file_download_page() {
$file = "private://sample.csv";
//code for download $file
}    

Please provide a sample code.

Thank you

Need a function in my module for user download a file from private filesystem.

$file : "private://sample.csv"

Which function should be used: file_download() or file_transfer($uri, $headers); ?

function file_download_page() { $file = "private://sample.csv"; //code for download $file }

Please a sample code.

Thank you

Need a function in my module for users to download a file from a private filesystem.

$file : "private://sample.csv"

Which function should be used: file_download() or file_transfer($uri, $headers); ? 

function file_download_page() {
$file = "private://sample.csv";
//code for download $file
}    

Please provide a sample code.

Thank you

Tweeted twitter.com/#!/StackDrupal/status/150990956987035648
Source Link
Johnny
  • 61
  • 1
  • 2

How to download a file from private file system

Need a function in my module for user download a file from private filesystem.

$file : "private://sample.csv"

Which function should be used: file_download() or file_transfer($uri, $headers); ?

function file_download_page() { $file = "private://sample.csv"; //code for download $file }

Please a sample code.

Thank you