Hans Dijkema
Hans Dijkema
I understand. I looks like your making some big changes for the next release of espocrm.
If you are too early with clicking, you'll get a validation error indeed. If you click just between the disappearance of the upload message and the actual creation of the...
It didn't , sorry. Somehow in the current file.js it is possible to click update before 'setAttachment()' is called. The end result is that no relation is set. I tested...
No, it doesn't. I did this with a file of 18MB. 2020-07-23T13:22:37.894Z VM22642:76 2020-07-23T13:22:37.894Z VM22642:78 2020-07-23T13:22:37.897Z
It's somewhere during the uploading. Also, one could cancel the upload with the cross sign () during upload. Afterwards, one cannot upload the same file, unless one clicks 'cancel' (I...
I refined my solution somewhat: ```javascript (...) searchTypeList: ['isNotEmpty', 'isEmpty'], updateLink: null, updateLinkColor: null, cancelLink: null, cancelLinkColor: null, events: { ``` ```javascript uploadFile: function (file) { this.blockUpdateLink(); var isCanceled =...
I think, somehow the 'update' trigger interferes with the uploading process and maybe the validation is not always called?
Oke. I think there's another problem with the uploading of files:  When, using inline editing, I upload a new file and I click 'cancel', instead of 'update', I also...
I've decided to make this the workaround for the moment. So I added this code: ```javascript unblockUpdateLink: function() { if (this.updateLink !== null) { var el_update = this.updateLink; this.updateLink.css('pointer-events', 'auto');...
To prevent canceling during upload, I also added this: ```javascript var removeLink = ''; if (this.updateLink !== null) { removeLink = ''; } ```