I am trying to write a Zimlet that should work with briefcase - I need to upload files and rename them according to certain naming convention. It should be very simple, but I really can't get it.
I have already tried even to look into ZmUploadDialog.
js source and copy-paste functions from there but it gives me an error
on
Code:
com_itdassist_register_inbound_HandlerObject.prototype._uploadSaveDocs =
function(files, status, guids) {
guids = guids.split(",");
... As far as I understand, guids should be returned by uploadMgr.execute after
Code:
var callback = new AjxCallback(this, this._uploadSaveDocs, [files]);
var uploadForm = document.getElementById("registerInbound_form");
var uploadMgr = appCtxt.getUploadManager();
window._uploadManager = uploadMgr;
try {
uploadMgr.execute(callback, uploadForm);
... But it does not work for me.
Could anybody be so kind and point me to the right way either:
(a) what is wrong with my implementation taken from ZmUploadDialog?
or
(b) what is the simpliest way to just upload file from local disk to briefcase and rename it?