PHP code example of epii / admin-ui-upload
1. Go to this page and download the library: Download epii/admin-ui-upload library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
epii / admin-ui-upload example snippets
//网站可访问的接口 和上传接收器 如果不传递则为默认上传处理器
AdminUiUpload::init(string $upload_url,string $class = LocalFileUploader::class);
//如果使用默认处理器需要设置 保存路径前缀,和能访问此路径的 http 网址前缀
LocalFileUploader::init(string $upload_dir, string $url_pre);
<button data-upload="1" id="btn1" data-input-id="id1" data-img-id="show1" data-img-style="width:100px;height:200px">上传1</button>