4.4.0
Submit one or more File objects to the uploader
An array of File
s or <input>
HTMLElements
A set of parameters to send with the file to be added
The endpoint to send this file to
Submit one or more Blob objects to the uploader.
A BlobData
object:
Property | Description |
---|---|
name | the name of the Blob |
blob | the bytes of the Blob object being uploaded |
An array of Blob
or BlobData
objects.
A set of parameters to send with the file to be added
The endpoint to send this file to
Cancel the queued or currently uploading item which corresponds to the id
.
The file’s id
Cancels all queued or currently uploading items.
Clears the internal list of stored items. Only applies when autoUpload
is false
Attempts to continue a paused upload.
A file id
Send a delete request to the server for the corresponding file id.
Draws a thumbnail.
The id of the image file.
The element where the image preview will be drawn. Must be either an <img>
or <canvas>
element.
The maximum dimensions (for width and height) you will allow this image to scale to.
true
if the image data will come as a response from the server rather than be generated client-side.
Returns the button container element associated with a file
The file id
Returns the file identified by the id. File API browsers only.
The file id.
Returns the number of items that are either currently uploading or waiting for an available connection (qq.status.QUEUED
). If called inside of a cancel
event handler, then this method will return a value that includes the upload associated with the cancel
event handler. This is because the upload will not be canceled until the event handler returns.
Returns the name of the file with the associated id.
The file id
Get the number of items that have been successfully uploaded and have not been deleted.
Get the ID of the parent file for this scaled file.
The ID of a scaled image file
Returns the numer of remaining allowed items that may be submitted for upload based on validation.itemLimit
.
Returns an array of potentially resumable items. Each resumable is represented by an object with the following properties:
Property | Description |
---|---|
name |
filename |
uuid |
the unique id |
partIdx |
the index of the part where the resume will start from |
Returns the size of the item with the associated id.
The file id.
Return information about all the items that have been submitted to the uploader. The objects being iterated over will have the following properties: id
, uuid
, originalName
, name
, status
, and size
. For information on filtering via the filter parameter, see the upload status feature page.
An object which indicates which keys and values must be present in an upload to be returned.
Returns the UUID of the item with the associated id.
The fild id.
Output a message to the console, if possible.
The message to print
The level to output the message at.
Attempts to pause an in-progress upload.
The fild id.
Reset Fine Uploader
Attemp to upload a specific item again.
The file id.
Modify the location where upload requests should be directed. Pass in a file id or HTMLElement
to change the endpoint for that specific item.
A valid URI where upload requests will be sent.
Either an integer corresponding to a file, or an HTMLElement
corresponding to an upload button.
Modify the location where upload requests should be directed. Pass in a file id or HTMLElement
to change the endpoint for that specific item.
A valid URI where deleterequests will be sent.
Either an integer corresponding to a file, or an HTMLElement
corresponding to an upload button.
Set the parameters for a delete request. Pass in a file id to make the parameters specific to that file.
The parameters to include in the delete request.
The file id.
Change the name of a file.
The file id.
The new file name.
Set the parameters for an upload request. Pass in a file id to make the parameters specific to that file.
The parameters to include in the delete request.
The file id.
Change the UUID of a file.
The file id.
The new file UUID.
Begin uploading all queued items. Throws a NoFilesError
of there are no items to upload.
Mark element
as a drop zone.
The element to mark as a drop zone.
Returns the (drop zone) element where the file was dropped. Undefined if drop event was not involved.
The id of a file.
Returns the file id
associated with an HTMLElement
.
Returns the ID of the associated file, given a file container element or a child of a file container element.
Returns the HTMLElement
associated with the file id.
The file id.
Uesd to un-mark an element
as a drop zone.
The element to un-mark as a drop zone.
Generates a scaled version of a submitted image file.
The id of the image file.
Information about the scaled image to generate. The maxSize
property is required (integer). Optional properties are: orient
(boolean, defaults to true), type
(string, defaults to the type of the reference image), and quality
(number between 0 and 100, defaults to 80), and includeExif
(boolean, defaults to false
).