Свойство | Тип | Описание | |
---|---|---|---|
$_errorCode | error code of the current file upload | ||
$_localName | the name of the temporary file storing the uploaded file |
Метод | Описание | |
---|---|---|
getDataChanged ( ) : boolean | Returns a value indicating whether postback has caused the control data change. | |
getErrorCode ( ) : integer | Returns an error code describing the status of this file uploading. | |
getFileName ( ) : string | ||
getFileSize ( ) : integer | ||
getFileType ( ) : string | ||
getHasFile ( ) : boolean | ||
getIsValid ( ) : boolean | Returns true if this control validated successfully. | |
getLocalName ( ) : string | ||
getMaxFileSize ( ) : integer | ||
getValidationPropertyValue ( ) : mixed | Returns the original file name as the property value to be validated. | |
loadPostData ( $key, $values ) : boolean | Loads user input data. | |
onFileUpload ( $param ) | This method is invoked when a file is uploaded during a postback. | |
onPreRender ( $param ) | Sets Enctype of the form on the page. | |
raisePostDataChangedEvent ( ) | Raises postdata changed event. | |
saveAs ( $fileName, $deleteTempFile = true ) : boolean | Saves the uploaded file. | |
setIsValid ( $value ) | ||
setMaxFileSize ( $size ) | Sets the maximum size that a file can be uploaded. |
Метод | Описание | |
---|---|---|
addAttributesToRender ( $writer ) | Sets name attribute to the unique ID of the control. | |
getTagName ( ) : string |
protected addAttributesToRender ( $writer ) |
public getDataChanged ( ) : boolean | ||
Результат | boolean | whether postback has caused the control data change. False if the page is not in postback mode. |
public getErrorCode ( ) : integer | ||
Результат | integer | the error code |
public getFileName ( ) : string | ||
Результат | string | the original full path name of the file on the client machine |
public getFileSize ( ) : integer | ||
Результат | integer | the actual size of the uploaded file in bytes |
public getFileType ( ) : string | ||
Результат | string | the MIME-type of the uploaded file (such as "image/gif"). This mime type is not checked on the server side and do not take its value for granted. |
public getHasFile ( ) : boolean | ||
Результат | boolean | whether the file is uploaded successfully |
public getIsValid ( ) : boolean | ||
Результат | boolean | wether this control validated successfully. |
public getLocalName ( ) : string | ||
Результат | string | the local name of the file (where it is after being uploaded). Note, PHP will delete this file automatically after finishing this round of request. |
public getMaxFileSize ( ) : integer | ||
Результат | integer | the maximum file size, defaults to 1MB (1048576 bytes). |
protected getTagName ( ) : string | ||
Результат | string | tag name of the file upload control |
public getValidationPropertyValue ( ) : mixed | ||
Результат | mixed | the property value to be validated |
public loadPostData ( $key, $values ) : boolean | ||
Результат | boolean | whether the data of the control has been changed |
public onFileUpload ( $param ) |
public onPreRender ( $param ) |
public raisePostDataChangedEvent ( ) |
public setMaxFileSize ( $size ) |