Skip to main content
Question

Download programically file

  • May 22, 2025
  • 1 reply
  • 3 views

Forum|alt.badge.img

Hi all good people,

 

i have problem with download programically file. I used in PHP file_put_contents but the output was some number.

 

I need It please in PHP, bud I dont know how to do.

 

Thank you for your time.

1 reply

Forum|alt.badge.img

Hi Ales

I assume you are using this endpoint? https://developer.box.com/reference/get-files-id-content/

This will return a 302 with a Location header telling you where to download the file from. Since we don't have a PHP SDK you need to do this in your application code.

Hope this helps

Peter Christensen, Platform Solutions Engineer, Box