File Upload | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

File Upload

Hi fellow programmers, I need your help in finishing my self given project. I'm building a website that would allow users to upload music files into my website and also allow everyone else that visits to website to have access to them and download. Your help would be greatly appreciated

3rd Aug 2017, 2:31 PM
Peter Claver
Peter Claver - avatar
4 Answers
+ 4
FTP is fast to implement but not the most secure option. SFTP improves on this somewhat. The interface is similar to leaving "Directory Indexing" on for a website (a security issue unless done on purpose). Sample FTP from text mode (how people might get to such a service; this or a browser): https://code.sololearn.com/cncnN1Jzb7tB/?ref=app
3rd Aug 2017, 2:43 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
It's just output from logging in (the welcome banner) and a directory listing. If you're not familiar with command lines this won't be as relevant. I've been trying to get a browser sample linked in (maybe more to your liking) but have been fighting a connection problem; I'll post if I get something better.
3rd Aug 2017, 3:11 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
Here's a school using anonymous FTP in-browser: https://www.swfwmd.state.fl.us/data/ftp/ This is just an option though. You could also look at a Content Management System (some of them are really nice) or roll your own targeted, personal touch. List of CMS's -- jumps to open-source options, grouped by programming language: https://en.m.wikipedia.org/wiki/List_of_content_management_systems#Open_source_software
3rd Aug 2017, 3:28 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
All I had after running the code is so many codes i don't understand
3rd Aug 2017, 2:51 PM
Peter Claver
Peter Claver - avatar