View Full Version : Download Directory
randyaicim
1-6-03, 03:42 AM
I thought it would be easy to set up a downloadload directory for files. However I made a download directory, put the file in it, but the download page gets an error file not found.
Any suggestions?
First of all, you created this new directory inside htdocs, correct?
If you make a new folder in there you should be able to upload anything and access it with something like http://your-domain.com/new-directory/new-file.ext
Also, if you are trying to access http://your-domain.com/new-directory/ make sure you have an index.html file in there otherwise you may get an error.
I hope this helps, but if it doesn't please clarify: it may help us if you give the full web address of that download page or file you are trying to access.
Good luck :)
randyaicim
1-6-03, 02:21 PM
The index would be http://aicim.org/downloads/index.html
the file location: http://aicim.org/downloads/exampleweddingflyer.doc
Error:
You are not authorized to view this page
You might not have permission to view this directory or page using the credentials you supplied.
I just tried it and it seems to be working fine.
randyaicim
1-7-03, 01:57 AM
The answer to this should have been in the faq and I asked them to put it there. The directory needs to be chmod at 755 for downloads... what on earth for I don't know. If anyone has any lower numbers for that - that work please let me know. I am presuming for now it is the same for java uploads.
Become an Ordained Minister FREE (http://aicim.org)
RocketJeff
1-7-03, 10:27 AM
It's standard Unix file access permissions. If you didn't have the directory set as readable, the operating system wouldn't give permissions to read any file in the directory (or, rather, to find the entry of the file so that it can be read).
For a quick introduction see: An Introduction to Unix Permissions (http://www.onlamp.com/pub/a/bsd/2000/09/06/FreeBSD_Basics.html)
vBulletin v3.6.0, Copyright ©2000-2009, Jelsoft Enterprises Ltd.