Show DevBest File Uploader Website

Jerry

not rly active lol
Jul 8, 2013
1,957
522
So, I just created a File Uploader based on a PHP Code, here it is;
XTIMhVm.png

wjXPRI1.png

If you want to see more about this, go .
 

Ecko

23:37 [autobots] -!- eckostylez [[email protected]]
Nov 25, 2012
1,398
962
Pro tip, don't allow PHP files. Also, don't overwrite existing files.
Nothing wrong with allowing people to upload it, as long as you there's no attempt to execute it when downloading it. IE - take a look at this old filemanager: (devbest:demo is user/pw). The PHP script would never execute because of the way it is handled when retrieving the file:

PHP:
if($act == 'getfile'){
        $fname = trim($_GET['file']);
        $file_path = ROOT.CUR_DIR.'/'.$fname;

        if(strlen($fname) < 1)
            message('Invalid Link', 'Error');

        if(!is_file($file_path))
            message('Invalid LInk', 'Error');
          
        set_time_limit(0);
        ignore_user_abort();
      
        if(@getimagesize($file_path) !== false){
            header('Content-Type: '.mime_content_type($file_path));
            die(file_get_contents($file_path));
        }
 

cxdy

PHP Developer
Jun 8, 2014
100
27
Looks gay, Why would someone use this over Mega/Mediafire
What's gay about it? It's just a project, probably to allow him to learn PHP and expand his knowledge.

o/t
Looks great, OP. Maybe try making your alerts smaller, no reason to have them stretch across the whole page, and yeah, make sure you can't execute PHP files. ;)
 

Users who are viewing this thread

Top