Kephson / uppload_php_example

Basic PHP file upload example using uppload.js.org library building via webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic PHP image upload example using uppload.js.org

Basic PHP file upload example using uppload.js.org JavaScript library building it via webpack.

It shows the full functionality of uppload.js.org working together with a PHP backend and allows to create your custom builds.

Using DDEV local based on Docker it is set up in five minutes on your local device.

To start with DDEV local (if not already done) please read the documentation on how install it on your OS.

Be careful using the PHP script in a production environment without knowing what you do!

It is not secured as normally needed and you should not use the PHP script as it is in a public website!

Build and test project with DDEV local

Run ddev start to start the project with DDEV local.

Run ddev npm install to install all NPM dependencies.

Build test

Run ddev npm run test to check if a build with webpack could work.

Build production files

Run ddev npm run build to build the files to use in a production mode.

Build development files

Run ddev npm run dev to build the files to use in a development mode.

Run project

Run project while browsing to uppload-php.ddev.site on your local machine.

PHP files

The file upload.php is doing the file upload with easiest PHP functions.

The file cron.php could be used to delete all files in upload folder after x minutes.

Demo

There are different demo versions in the project:

Public demo:

About

Basic PHP file upload example using uppload.js.org library building via webpack

License:MIT License


Languages

Language:TypeScript 29.5%Language:JavaScript 25.2%Language:HTML 22.4%Language:CSS 13.9%Language:PHP 8.9%