File download directory "not a valid file or directory." Image included of issue...

Project:Ubercart Contributions
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:fixed
Description
Project: 
uc_file2

The problem: Ubercart refuses to recognize the file directory that I want to store my files for download.

Solutions tried: So I have done my research before posting this post. I have checked the file permissions, and tried changing them to 755 and 756. No luck. I registered a different domain altogether for my file downloads, tried to link to that, and no luck. Finally, I decided to use a well-tested file upload directory (one that I have used many times before for other uploads), and still no luck.

I attached a picture of the problem, and it's bothering me. I would like to set this up to be a different domain altogether, but it doesn't seem like it's happening right now. Any thoughts? Seriously, anything would be completely appreciated!

Dave

Version: 
Ubercart 2.x-dev
PreviewAttachmentSize
files.giffiles.gif17.04 KB
Andy's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 1153
#1
Status:active» fixed

The problem is that you are using a URL and not a file path.
http://www.example.com/sites/default/files //wrong
./sites/defaults/files //right

louis_gaff's picture
Offline
Joined: 03/20/2010
Juice: 28
#2

Andy- Seriously thank you for your help!!!! I appreciate it.

Andy's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 1153
#3

Thank you for accurately describing your problem and including an image. That makes it so much easier to help.

IFL Todd's picture
Offline
Joined: 05/19/2010
Juice: 56
#4

I see that 'path' is the method rather than 'url'. Is there any way to have the system use an URL, specifically an off-site URL, rather than a path? The site and store we're building right now serve and sell media files hosted on a separate media server.

louis_gaff's picture
Offline
Joined: 03/20/2010
Juice: 28
#5

To the best of my knowledge, it's not possible at this time. It'd be a great feature to have as keeping the sites on a different directory, a different url completely, would be fantastic for the security of them... right there with you.

reneegade's picture
Offline
Joined: 10/15/2010
Juice: 3
#6

Fixed my problem also - thanks!