The photo sources on the image upload/selection page can be turned on/off and sorted. The following code sample demonstrates setting custom sort values as well as disabling selected photo sources. The
isInitiallyOpen property allows you to set which “tab” should be open by default when the user first gets to the upload page.
One can easily implement their own custom photo source that supports both paging and nested folders.
Note that the steps for implementing a custom photo source are:
enabled: truein the
fns.onPhotoSourceReq; it is in this function that one receives requests for folders/images and passes a response back to the widget
The “root” or default folder is always passed as an empty string(“”).
The format of a reply is as follows – note that all the fields are required:
Here is an example where we create a custom photo source for two folders– the root folder (“”) and a folder that we have id-ed as