folderPane.goToFolder(String) Method ActiveX/Java Uploader JavaScript

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Navigates to the specified folder. The parameter can contain either a path to the target folder (for example, C:/Images) or a member of enumeration which specifies a special folder (for example, My Documents, My Pictures, etc.).

Syntax

JavaScript
$au.uploader('uploaderID').folderPane().goToFolder(folder);

Parameters

folder

Type: String

A path to the target folder or a member of the following enumeration which specifies a special folder to navigate to:

ValueDescription
BitBucketRecycle Bin
DesktopDesktop (for the user currently logged into the system)
MyComputerMy Computer
MyDocumentsMy Documents (for the user currently logged into the system)
MyMusicMy Music (for the user currently logged into the system)
MyPicturesMy Pictures (for the user currently logged into the system)
MyVideoMy Video (for the user currently logged into the system)
NetworkMy Network Places

Return Value

Type: Boolean

true if the specified folder is available and ActiveX/Java Uploader successfully navigates to it; otherwise, false.

Remarks

Note

When you call this method in non-Internet Explorer browser, take into account that only MyDocuments folder will be available. In Internet Explorer all listed folders are available.

To check if a certain folder is available on the given computer, use the canGoToFolder(String) method.

See Also

Reference