Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to allow other people to upload content to your site

Hi,

I want to make a website where I can allow people to directly upload content (and it must be visible for other visitors without me having to manually add it) but I don’t know where to start.
Is it smart to use a CMS, if so which one or is there an obvious answer like its just one line of JS?
(I do want to note that i’m a beginner coder so it might be a dumb question for the more advanced people)

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

The safest, and easiest way is to use an existing, dedicated system, like CMS. CMSes usually have critical functionalities already built-in. Such functionalities are, for example:

  • validating file types vs theirs contents
  • blocking uploading files that may contain server-side executable code
  • blocking files containing Javascript (to protect against XSS attacks)
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading