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

Supported browsers: Internet ExplorerFirefoxGoogle ChromeSafari

Verifies whether the specified special folder is available.

Syntax

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

Parameters

folder

Type: String

A member of this enumeration that specifies a special folder to check:

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 can navigate it; otherwise, false.

Note

This method works only for special folders. You cannot verify physical path on the local machine with this method.

Remarks

This method is helpful if you use custom buttons to navigate to the special folder (like My Pictures or My Documents). For example, you can check which of special folders are available and hide buttons for the folders which are not available.

To navigate to a certain special folder, use the goToFolder(String) method.

See Also

Reference