Files upload to files folder, but I can't download them. I'm using SME Server
Hi everybody.
I'm facing this problem. I can upload files normally, and I can see that they are in the files folder; however, I can't download them from their links or I can't see pictures I've added for users. For example, a file that I've uploaded has this link to be downloaded: http://192.168.2.40/files/output.pdf, which should be fine. However, I get a 404 error page.
I think that the problem is the way SME Server manages folders. It has an html folder, where index is stored, and there's also a files folder, like this.
-root
-html
-files
-includes
-...etc
- index.php
-files
-cgi-bin
The files are uploaded into the files folder inside html, but the link provided takes me to the files folder outside html. If I manually copy the files into the files folder outside html, I can access the files and the pictures for users are shown normally. What can I do to avoid having to copy manually every single file that's uploaded?
Thanks for your answer.

Chmod
You have to check the settings/files to be sure that the files folder is enabled to allow public access.
Ghana Real Estate | Voacanga Africana Seeds | Shea Butter
It's set to public
thanks for answering quickly, Chmod. I've just checked it and it's set to public.
- yhh -
Stracture should look like this:
the structure I mentioned should look like this:
-root
---html
------files
------includes
------......etc
------ index.php
---files
---cgi-bin
- yhh -
Please, I need to fix this
Please, I need to fix this problem soon. What can I do?
- yhh -
kind of solved
First, I haven't been able to create a symbolic link. Being in root, I tried:
#ln -s ./html/files files
That created a link inside the existing folder (1) targeting at the files folder (2) inside html. It didn't solved the problem. It seems that I can't create a link named files if there's already a folder with that name. It looke like: root/files/files, and it can't be accessed. Then, I deleted the files folder 1 and the link just created, and I tried again:
#ln -s ./html/files files
Apparently it did it. It takes me to folder 2. However, when I try to download files, I get a "403 Forbidden error", although before I was able to access to files outside html. Besides, if I had just deleted the files folder 1, (without making the link), I would've gotten the same error. Apparently, without the files folder 1, files folder 2 is looked for.
Next, I created another folder inside html and named it "uploaded", and configured drupal to upload files into this folder. That did it. It seems that drupal got confused with files folder 1, because SME server by default takes root/files to the folder outside html. I hope I won't have more problems; otherwise, I'll come back.
So far I know, I can't change conf files manually with Smer server. I have to use templates, which I still can't use very well.
Yersin.
- yhh -