Hi,

How do i define the hard drive in header('Content-Disposition: attachment; filename=...... Something like this header('Content-Disposition: attachment; filename=C:\MyFolder\file.jpeg); Thanks

The filename does not specify a path to save the file, only the name of the file to be downloaded. You can't force a user to save a file in a particular place.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.