Skip to content

jurajlapcak/WEBTECH2-1-file-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-upload

File-upload is a Php/Javascript web application for uploading files not bigger than 20MB to apache 2 server created for educational purposes.

Using vanilla php and javascript. Styling by using Bootstrap grid system.

Installation

In index.php change line 5 $path = '/home/xlapcak/public_html/files/' . $subPath; path in string to path leading to directory where files should be uploaded.

In controller/uploadController.php change line 41:
$_FILES['fileInput']['tmp_name'], '/home/xlapcak/public_html/files/' . $_POST['fileName'] . '_' . time() . "." . $ext string: '/home/xlapcak/public_html/files/' to path leading to directory where files should be uploaded.

Add htaccess file to directory folder where files are uploaded so you don't get pwned

About

File-upload is a Php/Javascript web application created for educational purposes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published