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





Group: Members
Posts: 1
Joined: 6-June 16
Member No.: 24,301



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.

User is offlinePM
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: 7,702
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 online!PM
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: 22nd October 2017 - 02:04 PM