The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Directory space for web users
Bingo1000
post Oct 25 2013, 10:00 AM
Post #1





Group: Members
Posts: 4
Joined: 2-October 13
Member No.: 19,798



Hi,
I’m just wondering if there’s a way to give end users a folder/space on my website they can add/edit files in.
The hosting provider I use facilitates a .htaccess which is great - I can use it for security and listing folders.
But a wish list scenario would be for the end user to access a folder like windows explorer to edit/add/delete files.
Or is there an alternative way of going about this?
Thanks
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
jimlongo
post Oct 25 2013, 12:56 PM
Post #2


This is My Life
*******

Group: Members
Posts: 1,128
Joined: 24-August 06
From: t-dot
Member No.: 16



Create a folder. First thing you'll want to do is password protect it.

Put inside it an .htaccess file with Options +Indexes
This will give users access to files in that directory.

To give them the ability to upload files, you would need to create a file upload mechanism for that.
You could create a form that uses multipart/form-data
CODE

<form action="upload_file.php" method="post"
enctype="multipart/form-data">
<label for="file">Filename:</label>
<input type="file" name="file" id="file"><br>
<input type="submit" name="submit" value="Submit">
</form>


You'd need a simple php function to enable the upload.

This post has been edited by jimlongo: Oct 25 2013, 01:02 PM
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Bingo1000
post Oct 31 2013, 10:16 AM
Post #3





Group: Members
Posts: 4
Joined: 2-October 13
Member No.: 19,798



Ok, thanks, that would work. It will cost me allot of time to get it right though (an easy to use folder structure), so I might do a bit of research for some online hosted service I can use first.
- Cheers
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 09:58 AM