Skip to content

Instantly share code, notes, and snippets.

@marclundgren
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marclundgren/ad0f2c55379840a0c088 to your computer and use it in GitHub Desktop.
Save marclundgren/ad0f2c55379840a0c088 to your computer and use it in GitHub Desktop.
My App Upload Folder example
// 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