Loading...
 
Skip to main content

Features / Usability


Uploading File to Directory

I have a couple of questions on how to get files to be uploaded to a directory and how to make it so that they can't access it directly.

My tiki wiki is installed at http://domain.com/tiki/Question

If I want to upload my files to http://domain.com/tiki/files/Question how do I do that? I've already created the files folder.

If I want to upload my files to http://domain.com/files/Question how would I do that?

What file and what lines do I need to customize for the php script?

How do I modify .htaccess or some other file in order for users not to be able to access the folder directly?

Thanks.

Goto Admin-> File Galleries, select 'Use a directory to store files' and then enter your desired directory path. That shoud do it.

I may not have interpreted your question correctly so this is only what I can offer.😉

--kwow


You'll want to place somthing like the folliwng in your Apache conf


Require valid-user
AuthType Basic
AuthName "Approved Users Only"
AuthUserFile /path_to_your_access_fiename/ # like .htaccess, I supppose
AllowOverride None
Order allow,deny
Allow from all


The edit your access_contraol file with usernames and encrypted passwords of users permitted to acees /files

You may wish to use the toll at the following URL to encrypt the password for you access control file entries.

http://www.euronet.nl/~arnow/htpasswd/Question

If not hand editing you access control file, a command similar to the following one should work:

/usr/local/apache/bin/htpasswd -nb $uname $pass (where pass in unencrypted when entered on the command line)

Hope this helps,

wb