Download the PHP package alphasnow/aliyun-oss-appserver without Composer
On this page you can find all versions of the php package alphasnow/aliyun-oss-appserver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package aliyun-oss-appserver
English | 简体中文
AliYun OSS AppServer
Upload data to OSS through Web applications. Add signatures on the server, configure upload callback, and directly transfer data.
Installation
Configuration
Modify the environment file .env
(Optional) Modify the config file config/oss-appserver.php
Usage
OSS configuration
- CORS configuration / Create rule / Example:
Soucre: *, Allow Methods: POST
Laravel server
Add route routes/api.php
, Use the default controller.
Web client
- Download https://www.alibabacloud.com/help/en/object-storage-service/latest/add-signatures-on-the-client-by-using-javascript-and-upload-data-to-oss#title-l7m-nho-uap
- Find line 30 of
upload.js
and change it to the actual server address, example:http://laravel.local
Examples
Use js client to upload file
Example of single-file services with clients
Use curl to upload file
-
Get the token
- Upload file
Dynamic configuration
Ali document
All versions of aliyun-oss-appserver with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2.5|^8.0
ext-json Version *
ext-curl Version *
ext-openssl Version *
ext-json Version *
ext-curl Version *
ext-openssl Version *
The package alphasnow/aliyun-oss-appserver contains the following files
Loading the files please wait ....