Jump to content

Hi LTT Community,

 

I had an idea today; since my friends somehow always find good music that they want to share with me. However they download them as mp3 and I use Spotify.
I would like to find a site template (HTML/CSS) where they can upload the files to a specific folder on my Server.

Also I would like to use a login page where I can set Diffrent users, Diffrent passwords and also different folders. Im a student programming 1st year and i looked for some templates but was not able to change usernames/passwords/ where they go to after they pressed login.

 

Is anyone able to help me or point me in the direction of a good set of templates.

Thanks In Advance 

Link to comment
https://linustechtips.com/topic/656214-need-self-hosted-file-sharing-website/
Share on other sites

Link to post
Share on other sites

You're basically trying to re-create the functionality of a ftp server in a browser.

 

So why don't you just set up a FTP server on your server, and teach your friends to upload files to you? 

 

Create accounts for everyone and teach them once to use Filezilla FTP client or the ftp client built inside Total Commander, or any other ftp client and you're done. Filezilla FTP client is super easy to use, they just type the ip or hostname of your server and your username/password and they'll instantly be ready to transfer files.

 

If you insist on html, there are plenty of open source "file managers", here's for example one of the first Google results for "open source file manager script" : http://osfilemanager.com/ - it's a file manager written in PHP and I think it requires mysql or some equivalent as well

 

Other suggestions that look good to me were 

 

http://www.mollify.org/

http://pfn.sourceforge.net/

 

Link to post
Share on other sites

11 minutes ago, mariushm said:

You're basically trying to re-create the functionality of a ftp server in a browser.

 

So why don't you just set up a FTP server on your server, and teach your friends to upload files to you? 

 

Create accounts for everyone and teach them once to use Filezilla FTP client or the ftp client built inside Total Commander, or any other ftp client and you're done. Filezilla FTP client is super easy to use, they just type the ip or hostname of your server and your username/password and they'll instantly be ready to transfer files.

 

If you insist on html, there are plenty of open source "file managers", here's for example one of the first Google results for "open source file manager script" : http://osfilemanager.com/ - it's a file manager written in PHP and I think it requires mysql or some equivalent as well

 

Other suggestions that look good to me were 

 

http://www.mollify.org/

http://pfn.sourceforge.net/

 

ok I will try those ones and report back, thank you

Link to post
Share on other sites

What I'd do in this situation, is buy a cheap VPS (low power ones with decent sized harddrives depending on how much you need to store can be under $10 / month), then setup a h5ai server running within Apache. It's pretty easy to install, and using apaches .htaccess configurations you can grant access to certain folders by certain users (Great guide on that here).  That way you'll have a slick web interface to manage files, accessible from anywhere. I use a system like this myself, and it looks like this.
 

 

My own h5ai setup.

Link to post
Share on other sites

57 minutes ago, Elllz said:

What I'd do in this situation, is buy a cheap VPS (low power ones with decent sized harddrives depending on how much you need to store can be under $10 / month), then setup a h5ai server running within Apache. It's pretty easy to install, and using apaches .htaccess configurations you can grant access to certain folders by certain users (Great guide on that here).  That way you'll have a slick web interface to manage files, accessible from anywhere. I use a system like this myself, and it looks like this.
 

 

My own h5ai setup.

The ones mariusHM provides and Ellz provide both do not work i cannot get a page in PHP online and i have a dedicated Windows 2012 R2 Server for hosting websites as well as a domain name. Meanwhile i got the login page working and now i just need a plain HTML Template where people can upload files to. PS; I dont want to set up a VPN server because for my friends that is to complicated..

Thanks for replying though 

Link to post
Share on other sites

You can install PHP on Windows, just read the installation notes, it's a 5-10 minute installation. 

 

There's no such thing as just a html template which would allow you to upload files in specific folders.  Any file is uploaded in a temporary folder on your server, it's up to some code on the server side to move uploaded file from temporary folder to another location - that's why a programming language like PHP is needed.

 

However, note that besides PHP a database engine like MySQL may be needed (to store the user accounts and password hashes along with settings for them).

 

You could alternatively just install Filezilla FTP Server (windows software) on your dedicated server and if you think it's too complicated for your friends to enter an IP in a ftp client, just create a subdomain (something like  files.yourdomain.com )

Link to post
Share on other sites

1 hour ago, Quinten Verhelst said:

The ones mariusHM provides and Ellz provide both do not work i cannot get a page in PHP online and i have a dedicated Windows 2012 R2 Server for hosting websites as well as a domain name. Meanwhile i got the login page working and now i just need a plain HTML Template where people can upload files to. PS; I dont want to set up a VPN server because for my friends that is to complicated..

Thanks for replying though 

I can't see any reason why either of those setups wouldn't work on Windows Server? PHP, MySQL and apache support is all there, the configuration and setup will jsut be different (although I imagine still pretty similar)

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×