The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> PHP, HTML file upload, How to enable certain file types not others
MartinP-S
post Jun 6 2016, 01:48 PM
Post #1


Unregistered









Hello...

I am making a html file upload at: martinmmps.com

Does anyone know how to stop some types of files downloaded (app, exe, zip, dmg files) using php(NOT HOW TO CHOOSE WHICH TYPES OF FILES CAN BE DOWNLOADED!) HERE IS THE CODE I AM USING: PHP

biggrin.gif laugh.gif smile.gif wink.gif

here is the w3schools tutorial that i used to make the file upload.

Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Jun 6 2016, 04:30 PM
Post #2


.
********

Group: WDG Moderators
Posts: 9,628
Joined: 10-August 06
Member No.: 7



QUOTE(MartinP-S @ Jun 6 2016, 08:48 PM) *

Does anyone know how to stop some types of files downloaded (app, exe, zip, dmg files) using php

You meant uploaded, right? Otherwise please elaborate. unsure.gif

QUOTE

The tutorial does explain how you can stop files with certain file extensions from being uploaded (a file extension doesn't necessarly say anything about the contents of the file, though).

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

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

 



- Lo-Fi Version Time is now: 19th March 2024 - 04:21 AM