Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Pandyan Kulasekaran
Pandyan Kulasekaran
515 Points

Tips to start a website for database

Hi,

I am learning WordPress, a Beginner. I am interested to build a simple website for file storage (preferably only zip & PDF files).

The only function for my website that I am interested would be for users to Upload/download. Not like Dropbox or cloud storage services. But more simple storage and sharing.

So could I achieve this only with WordPress Or do I need to combine other computer language to create a database website.

Need help/guidance to start in the right direction. Thank you in advance

3 Answers

Tim Knight
Tim Knight
28,888 Points

Hi Pandyan,

This is something you could definitely do from scratching using something like PHP and MySQL, but in addition to considering the upload and download process you also have the concerns of security you should be considering. How can upload the files and what types of files can they upload? Do they have to be a minimum or maximum of a certain file size? So you can see, there are more challenges than just uploading and downloading when your project is available to the public.

Since you have experience with Wordpress you might consider using Wordpress' login system to manage your accounts (for "subscribers") and then use a plugin to address your file management. For example: https://wordpress.org/plugins/wp-file-upload/ is one such plugin. I would suggest search through the Wordpress Plugin system for other options.

Again, this is to suggest that Wordpress is the best solution, but since you spoke to your familiarity with the system it might be a good place to start.

I think that you will use php and mysql with WordPress.

However, I recomend you learning HTML ( for the website structure), CSS ( if you want it pretty ), PHP (don't like it very much, but it's good for beginners ) ans MySQL for the database.

Regarding to html and css, you need to know the basics only.

Now, PHP will take care of your connections (upload/download). MySQL is where your going to create your database to store your files.

Pandyan Kulasekaran
Pandyan Kulasekaran
515 Points

Hi Bruno Silva & Tim,

Thank you very much for all the suggestions. It all makes better sense now for a small project that I wish to achieve with Wordpess and with a little of php and mysql.

I have already locked the access with the login/registered user only type.

Thank you all once again.