Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Server-side Scripting _ PHP, HTML file upload

Posted by: MartinP-S Jun 6 2016, 01:48 PM

Hello...

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

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: http://martinmmps.com/code/upload.txt

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

http://www.w3schools.com/php/php_file_upload.asp


Posted by: Christian J Jun 6 2016, 04:30 PM

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
http://www.w3schools.com/php/php_file_upload.asp

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).


Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)