trait FileUploader extends Object
Angular File Uploader (nervgh/angular-js-upload)
- Annotations
- @RawJSType() @native()
- See also
https://github.com/nervgh/angular-file-upload/wiki/Module-API
- Alphabetic
- By Inheritance
- FileUploader
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addToQueue(element: Element, options: FileItem, filters: String): Unit
- def addToQueue(element: Element, options: FileItem): Unit
- def addToQueue(element: Element): Unit
- def addToQueue(file: FileItem, options: FileItem, filters: String): Unit
- def addToQueue(file: FileItem, options: FileItem): Unit
- def addToQueue(file: FileItem): Unit
- def addToQueue(files: Array[FileItem], options: FileItem, filters: String): Unit
- def addToQueue(files: Array[FileItem], options: FileItem): Unit
-
def
addToQueue(files: Array[FileItem]): Unit
Add items to the queue, where: files is a {FileList|File|HTMLInputElement}, options is an {Object} and filters is a {String}
-
val
alias: String
Name of the field which will contain the file, default is file
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
autoUpload: Boolean
Automatically upload files after adding them to the queue
-
def
cancelAll(): Unit
Cancels all current uploads.
-
def
cancelItem(): Unit
Cancels uploading of item, where value is {FileItem} or index of item.
-
def
cancelItem(index: Int): Unit
Cancels uploading of item, where value is {FileItem} or index of item.
-
def
cancelItem(file: FileItem): Unit
Cancels uploading of item, where value is {FileItem} or index of item.
-
def
clearQueue(): Unit
Removes all elements from the queue.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
destroy(): Unit
Destroys a uploader.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
filters: Array[FileUploadFilter]
Filters to be applied to the files before adding them to the queue.
Filters to be applied to the files before adding them to the queue. If the filter returns true the file will be added to the queue
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
val
formData: Array[Object]
Data to be sent along with the files
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getIndexOfItem(file: FileItem): Int
Returns the index of the {FileItem} queue element.
Returns the index of the {FileItem} queue element.
- file
the given of the {FileItem}
- returns
the index of the {FileItem} queue element.
-
def
getNotUploadedItems(): Array[FileItem]
Return an array of all pending items on the queue
Return an array of all pending items on the queue
- returns
an array of all pending items on the queue
-
def
getReadyItems(): Array[FileItem]
Return items are ready to upload.
Return items are ready to upload.
- returns
items are ready to upload.
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
val
headers: FileUploadHeaders
Headers to be sent along with the files.
Headers to be sent along with the files. HTML5 browsers only.
-
def
isFile(value: Any): Boolean
Returns true if value is {File}.
Returns true if value is {File}.
- value
the given value
- returns
true if value is {File}.
-
def
isFileLikeObject(value: Any): Boolean
Returns true if value is {FileLikeObject}.
Returns true if value is {FileLikeObject}.
- value
the given value
- returns
true if value is {FileLikeObject}.
-
def
isHTML5: Boolean
if uploader is html5-uploader.
if uploader is html5-uploader. Read only.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
def
isUploading: Boolean
if an upload is in progress.
if an upload is in progress. Read only.
-
val
method: String
It's a request method.
It's a request method. By default POST. HTML5 browsers only.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- val onAfterAddingAll: Function1[Array[FileItem], Unit]
- val onAfterAddingFile: Function1[FileItem, Unit]
- val onBeforeUploadItem: Function1[FileItem, Unit]
- val onCancelItem: Function4[FileItem, FileUploadResponse, Any, FileUploadHeaders, Unit]
- val onCompleteAll: Function0[Unit]
- val onCompleteItem: Function4[FileItem, FileUploadResponse, Any, FileUploadHeaders, Unit]
- val onErrorItem: Function4[FileItem, FileUploadResponse, Any, FileUploadHeaders, Unit]
- val onProgressAll: Function1[FileUploadProgress, Unit]
- val onProgressItem: Function2[FileItem, FileUploadProgress, Unit]
- val onSuccessItem: Function4[FileItem, FileUploadResponse, Any, FileUploadHeaders, Unit]
- val onWhenAddingFileFailed: Function3[FileItem, FileUploadFilter, FileItem, Unit]
-
def
progress: Double
Upload queue progress percentage.
Upload queue progress percentage. Read only.
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
val
queue: Array[FileItem]
Items to be uploaded
-
val
queueLimit: Double
Maximum count of files
-
val
removeAfterUpload: Boolean
Remove files from the queue after uploading
-
def
removeFromQueue(file: FileItem): Unit
Remove an item from the queue, where value is {FileItem} or index of item.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
uploadAll(): Unit
Upload all pending items on the queue.
-
def
uploadItem(index: Int): Unit
Uploads an item, where value is {FileItem} or index of item.
-
def
uploadItem(file: FileItem): Unit
Uploads an item, where value is {FileItem} or index of item.
-
val
url: String
Path on the server to upload files
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
withCredentials: Boolean
Enable CORS.
Enable CORS. HTML5 browsers only.