DragnDropFiles ImagePlugin UploadRepository target is editable ? file-type == image read Image file insert image object Navigator drop file event Event DropFilesInEditable(items) calculate range Process upload is upload OK Event FileUploaded(repoItem) do some src replace Copyright (c) 2010 Nicolas Karageuzian for each file Event UploadFailure(repoItem) repoItem: addFileUpload for each file Event DropFilesInPage(itemIds) trigger trigger schedule upload Invoke invoke Invoke Invoke remove image object (async thread) HandleResize subscribe subscribe YES YES NO NO YES Subscribe