承接 dwthai/dw-upload 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dwthai/dw-upload

Composer 安装命令:

composer require dwthai/dw-upload

包简介

The simple file uploads for Dreamweaver user.

README 文档

README

ใช้เรียนรู้ประกอบสื่อการสอนคลิปวีดีโอชุด Dreamweaver Database โดย DwThai.Com

Example

This component simplifies file uploading. Assume a file is uploaded with this HTML form:

<form method="post" enctype="multipart/form-data" action="">
    <input type="file" name="image" value=""/>
    <input type="submit" value="Upload Now !"/>
</form>

When the HTML form is submitted, the server-side PHP code can upload the file like this:

<?php
use DwThai\DwUpload;
$fileName =  DwUpload::DwUpload($_FILES['image'],'img/',true);
echo $fileName;

Description

DwUpload ( File , [Path , Random Filename ] ) : string

File: string อาจได้จากตัวแปร $_FILES[..input name...]

Path: string (default: img-products) ตำแหน่งเก็บไฟล์เมื่อ upload

Random Filename: true/false (default: false) booleans

Return: string คืนค่ากลับเป็นชื่อไฟล์ที่ upload (File Name) String filename return

How to Install

Create a composer.json file in your project root:

{
    "require": {
        "dwthai/dw-upload": "*"
    }
}

Install via composer:

composer require dwthai/dw-upload

Author

DwThai.Com

Youtube channel

DwThai.Com Channel

License

MIT Public License

统计信息

  • 总下载量: 108
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固