Ubisoft Uploading Avatar the Upload Process Failed
Upload
Upload file by selecting or dragging.
When To Utilize#
Uploading is the process of publishing information (web pages, text, pictures, video, etc.) to a remote server via a web page or upload tool.
- When y'all need to upload one or more than files.
- When you need to show the procedure of uploading.
- When you lot need to upload files past dragging and dropping.
import { NzUploadModule } from 'ng-zorro-antd/upload' ;
Examples
Click or drag file to this area to upload
Support for a single or majority upload. Strictly prohibit from uploading visitor information or other band files
API#
You tin can consult jQuery-File-Upload about how to implement server side upload interface.
nz-upload #
Holding | Description | Type | Default |
---|---|---|---|
[nzAccept] | File types that tin be accepted. Run across input take Attribute | string | - |
[nzAction] | Required. Uploading URL | string | ((file: NzUploadFile) => string | Observable<string>) | - |
[nzDirectory] | support upload whole directory (caniuse) | boolean | imitation |
[nzBeforeUpload] | Hook function which will exist executed before uploading. Uploading will be stopped with false or a Observable. Warning:this function is not supported in IE9. Observe: Must use => to define the method. | (file: NzUploadFile, fileList: NzUploadFile[]) => boolean | Observable<boolean> | - |
[nzCustomRequest] | override for the default xhr beliefs allowing for boosted customization and ability to implement your ain XMLHttpRequest. NOTICE: Must use => to define the method. | (item) => Subscription | - |
[nzData] | Uploading params or part which tin can return uploading params. Detect: Must use => to ascertain the method. | Object | ((file: NzUploadFile) => Object | Observable<{}>) | - |
[nzDisabled] | disable upload button | boolean | false |
[nzFileList] | Listing of files, two-way data-binding | NzUploadFile[] | - |
[nzLimit] | limit single upload count when nzMultiple has opened. 0 unlimited | number | 0 |
[nzSize] | limit file size (KB). 0 unlimited | number | 0 |
[nzFileType] | limit file type, due east.grand: epitome/png,image/jpeg,paradigm/gif,image/bmp | string | - |
[nzFilter] | Custom filter when choosed file | UploadFilter[] | - |
[nzHeaders] | Set request headers, valid above IE10. NOTICE: Must use => to define the method. | Object | ((file: NzUploadFile) => Object | Appreciable<{}>) | - |
[nzListType] | Congenital-in stylesheets, support for 3 types: text , flick or picture-card | 'text' | 'picture' | 'moving-picture show-card' | 'text' |
[nzMultiple] | Whether to back up selected multiple file. IE10+ supported. You can select multiple files with CTRL holding downward while multiple is set to be true | boolean | false |
[nzName] | The proper name of uploading file | string | 'file' |
[nzShowUploadList] | Whether to show default upload list, could be an object to specify showPreviewIcon , showRemoveIcon and showDownloadIcon individually | boolean | { showPreviewIcon?: boolean, showRemoveIcon?: boolean, showDownloadIcon?: boolean } | true |
[nzShowButton] | Show upload push button | boolean | true |
[nzWithCredentials] | ajax upload with cookie sent | boolean | false |
[nzOpenFileDialogOnClick] | click open file dialog | boolean | true |
[nzPreview] | A callback office, volition be executed when file link or preview icon is clicked. Observe: Must utilise => to define the method. | (file: NzUploadFile) => void | - |
[nzPreviewFile] | Customize preview file logic. NOTICE: Must use => to define the method. | (file: NzUploadFile) => Observable<dataURL: cord> | - |
[nzPreviewIsImage] | Customize the preview file is an image, generally used when the epitome URL is in a non-standard format. Find: Must employ => to ascertain the method. | (file: NzUploadFile) => boolean | - |
[nzRemove] | A callback part, will be executed when removing file button is clicked, remove event will be prevented when return value is false or a Observable. NOTICE: Must utilise => to ascertain the method. | (file: NzUploadFile) => boolean | Observable<boolean> | - |
(nzChange) | A callback function, can exist executed when uploading land is changing | EventEmitter<NzUploadChangeParam> | - |
[nzDownload] | Click the method to download the file, pass the method to perform the method logic, practise not pass the default jump to the new TAB. | (file: NzUploadFile) => void | Jump to new TAB |
[nzTransformFile] | Customize transform file before request | (file: NzUploadFile) => NzUploadTransformFileType | - |
[nzIconRender] | Custom show icon | TemplateRef<{ $implicit: NzUploadFile }> | - |
[nzFileListRender] | Custom file list | TemplateRef<{ $implicit: NzUploadFile[] }> | - |
nzChange#
The role will exist called when uploading is in progress, completed or failed
When uploading state alter, information technology returns:
{ file: { /* ... */ } , fileList: [ /* ... */ ] , event: { /* ... */ } , }
-
file
File object for the current performance.{ uid: 'uid' , // unique identifier proper name: '20.png' // file proper noun condition: 'washed' , // options:uploading, washed, mistake, removed response: '{"status": "success"}' , // response from server linkProps: '{"download": "prototype"}' , // additional html props of file link }
-
fileList
current list of files -
event
response from server, including uploading progress, supported by advanced browsers.
nzCustomRequest#
Allows for advanced customization by overriding default behavior in HttpClient
. Provide your own XMLHttpRequest calls to interface with custom backend processes or interact with AWS S3 service through the aws-sdk-js package.
nzCustomRequest
callback is passed an object with:
-
onProgress: (upshot: { percent: number }): void
-
onError: (event: Mistake): void
-
onSuccess: (body: Object, xhr?: Object): void
-
data: Object
-
filename: Cord
-
file: File
-
withCredentials: Boolean
-
activeness: String
-
headers: Object
Source: https://ng-zorro.gitee.io/components/upload/en/
0 Response to "Ubisoft Uploading Avatar the Upload Process Failed"
Postar um comentário