},
/**
* TODO checks the list of existing files prior to uploading and shows a simple dialog to choose
- * skip all, replace all or choosw which files to keep
+ * skip all, replace all or choose which files to keep
- * @param array selection of files to upload
- * @param callbacks to call:
- * onNoConflicts,
- * onSkipConflicts,
- * onReplaceConflicts,
- * onChooseConflicts,
- * onCancel
+ * @param {array} selection of files to upload
+ * @param {object} callbacks - object with several callback methods
+ * @param {function} callbacks.onNoConflicts
+ * @param {function} callbacks.onSkipConflicts
+ * @param {function} callbacks.onReplaceConflicts
+ * @param {function} callbacks.onChooseConflicts
+ * @param {function} callbacks.onCancel
*/
checkExistingFiles: function (selection, callbacks){
// TODO check filelist before uploading and show dialog on conflicts, use callbacks