Last active
August 29, 2015 14:04
-
-
Save marclundgren/ad0f2c55379840a0c088 to your computer and use it in GitHub Desktop.
My App Upload Folder example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add Liferay Upload UI to your App | |
AUI().use('my-app', 'liferay-upload-base', function(A) { | |
var app = new Liferay.MyApp(), | |
uploadConfig = app.get('uploadConfig'), | |
// instanciate Upload | |
upload = new Liferay.Upload(uploadConfig); | |
// add folder upload capability | |
if (A.UA.webkit) { | |
upload.plug(Liferay.UploadFolders); | |
} | |
// add upload UI to your app | |
app.set('upload', upload); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment