4 replies [Last post]
Styl3's picture
Offline
Joined: 08/03/2008
Juice: 10
Was this information Helpful?

In the files path text box, I have tried to place every path possible and all come back saying it's "not a valid file or directory". What is supposed to go here? Since I'm just testing this out (in Drupal 6) the file download directory I want to use is under /sites/default/downloadPDF/

Within the downloadPDF folder i have a pdf called successfulPurchase.pdf. Does this go in with the path?

Either way I've tried everything and can't get it to work. Any help is greatly appreciated.

myke@drupal.org's picture
Offline
Joined: 04/12/2008
Juice: 189
Styl3 wrote:What is supposed
Styl3 wrote:

What is supposed to go here? Since I'm just testing this out (in Drupal 6) the file download directory I want to use is under /sites/default/downloadPDF/

Within the downloadPDF folder i have a pdf called successfulPurchase.pdf. Does this go in with the path?

Either way I've tried everything and can't get it to work. Any help is greatly appreciated.

Ubercart still isn't 100% ready for Drupal 6..

Why are you using a directory under sites/default for downloads instead of something off the files directory?

What is the full path you are putting in?

-Myke

Styl3's picture
Offline
Joined: 08/03/2008
Juice: 10
Re: Styl3 wrote:What is supposed

I realize it isn't 100% ready for D6. I was just testing it out.

As for why i'm not doing it under the "files" directory, my D6 install runs many sites. All my "files" directories are located under /sites/sitename/files. The reason I didn't put the file directly under the files directory is b/c I didn't want it to be easy to find. Although i'm not really concerned with where it resides.

As I mentioned, I've tried every combination possible for the path. I've tried from /public_html/sites/default/downloadPDF/ to /sites/default/downloadPDF/ to http://www.mysite.com/sites/default/downloadPDF. I've also tried all of these with downloadPDF inside my "/sites/default/files/" folder. None of the paths work.

I just want to know what path is supposed to go there and where my file needs to be on my server.

Styl3's picture
Offline
Joined: 08/03/2008
Juice: 10
finally figured it out

well, i finally got it. apparently it starts from the drupal root itself and you can't start it with a "/"

torgosPizza's picture
Offline
Bug FinderEarly adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/14/2007
Juice: 4110
Re: finally figured it out

Well it doesn't have to start from the Drupal root, you can use an absolute path like /var/www/vhosts/mysite.com/files - but you have to know where the directory is located in that instance. Also the permissions on the folder sometimes need to be set so that the system can find it. I think 766 is what it needs to be chmod'd too. Anyways, glad you got it working. (And I would still recommend NOT having those purchasable files below the web root.)

--
Help directly fund development: Donate via PayPal!