|
| $mName |
|
| $mKey |
|
| $mContentType |
|
| $mFileName |
|
| $mFileSize = 0 |
|
| $_mTmpFileName |
|
| $mUploadFileFlag = false |
|
◆ _getRandomString()
_getRandomString |
( |
| $salt = '' | ) |
|
Generate random string.
- Parameters
-
string | $salt | Salt for generating token. |
- Returns
- string
◆ fetch()
◆ getBodyName()
Get file body name.
- Returns
- string
◆ getContentType()
Return content type
- Returns
- string
◆ getExtension()
Return extension from file name.
- Returns
- string
◆ getFileName()
Return file name.
- Returns
- string
◆ getFileSize()
Return file size.
- Returns
- int
◆ saveAs()
Name this, and store it. If the name is specified as complete file name, store it as the same name. If the name is specified as directory name, store it as the own name to the directory specified.
- Parameters
-
Directory | $file | path or file path. |
- Returns
- bool
◆ saveAsRand()
saveAsRand |
( |
| $dir, |
|
|
| $prefix = '', |
|
|
| $salt = '' ) |
Set random string to file name, and store it. The extension is never changed.
- Parameters
-
Directory | $dir | for store. |
string | $prefix | Prefix for random string. |
string | $salt | Salt for generating token. |
- Returns
- bool
- See also
- saveAs()
-
setRandomToFileName()
◆ saveAsRandBody()
saveAsRandBody |
( |
| $dir, |
|
|
| $prefix = '', |
|
|
| $salt = '' ) |
Set random string to file body name, and store it. The extension is never changed.
- Parameters
-
Directory | $dir | for store. |
string | $prefix | Prefix for random string. |
string | $salt | Salt for generating token. |
- Returns
- bool
- See also
- saveAs()
-
setRandomToBodyName()
◆ setBodyName()
Set file body name. The extension is never changed.
- Parameters
-
◆ setContentType()
setContentType |
( |
| $contenttype | ) |
|
Set content type
- Parameters
-
◆ setExtension()
Set extension.
- Parameters
-
- Returns
- string
◆ setFileName()
◆ setFileSize()
◆ setRandomToBodyName()
setRandomToBodyName |
( |
| $prefix, |
|
|
| $salt = '' ) |
Set random string to file body name. The extension is never changed.
- Parameters
-
string | $prefix | Prefix for random string. |
string | $salt | Salt for generating token. |
◆ setRandomToFilename()
setRandomToFilename |
( |
| $prefix, |
|
|
| $salt = '' ) |
Set random string to file body name. The extension is changed.
- Parameters
-
string | $prefix | Prefix for random string. |
string | $salt | Salt for generating token. |
The documentation for this class was generated from the following file:
- C:/Ampps/www/legacy250/html/core/XCube_FormFile.class.php