/File-Upload-Validator

A basic PHP application that validates the file upon uploading it.

Primary LanguagePHP

File Upload Validator

Project Overview

The File Upload Validator is a basic PHP application that validates files upon uploading. The project is created using core web technologies such as HTML, CSS, and PHP. It is to test and ensure that uploaded files meet certain criteria before they are accepted. This can help to prevent the upload of malicious files or files that are too large to handle in real world projects. The application uses regular expressions and built-in PHP functions to validate the file type and size.

You can view the project website here.

Main Objectives

The main objectives of this project were to:

  • Gain a better understanding of how PHP works.
  • Learn how regular expressions work and how to use them in PHP.
  • Explore different built-in functions such as preg_match, preg-match_all, and preg_replace.

Key Feature

Through this project, I gained the following knowledge and skills:

  • Allows users to upload files and validates if the file is a 'jpg', 'jpeg', 'png', or 'pdf' and that it is not more than 40mb in size.

Overall, this project provided me with a solid foundation PHP. The skills and knowledge I gained will be useful in future web development projects.

Contributing

Contributions are welcome! If you want to contribute to the project, please follow these guidelines:

  1. Fork the repository to your own GitHub account.

  2. Clone the repository to your local machine:

    git clone https://github.com/MiDo-kun/PHP-Upload-Files.git

  3. Create a new branch for your changes:

    git checkout -b your-branch-name

  4. Make your changes to the code.

  5. Commit your changes:

    git commit -m "Your commit message"

  6. Push your changes to your fork:

    git push origin your-branch-name

  7. Create a pull request from your fork to the main repository.

License

This project is licensed under the MIT License. See the LICENSE file for more information.