初始化仓库
This commit is contained in:
16
vendor/alibabacloud/tea-fileform/src/FileForm.php
vendored
Normal file
16
vendor/alibabacloud/tea-fileform/src/FileForm.php
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace AlibabaCloud\Tea\FileForm;
|
||||
|
||||
class FileForm
|
||||
{
|
||||
public static function getBoundary()
|
||||
{
|
||||
return (string) (mt_rand(10000000000000, 99999999999999));
|
||||
}
|
||||
|
||||
public static function toFileForm($map, $boundary)
|
||||
{
|
||||
return new FileFormStream($map, $boundary);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user