Greetings all, again.
I have this ongoing issue with attachments > 15 MB using ERAttachmentFlexibleUpload. I created a component which contains 5 different ERAttachmentFlexibleUpload components (one for each of 5 possible attachments allowed per communication.
We have set a property per the instructions, creating the limit of 15 mb.
Basically, the component lets you upload one file at a time, up to 5. There is a choose file button which appears until 5 have been uploaded. When clicked, it using the ERAttachmentFlexibleUpload to do it's thing, then goes back to choose file for the next one (up to 5).
We have the following bindings:
Attachment1Upload : ERAttachmentFlexibleUpload { failedFunction = "alert(\"Your upload is too large. The maximum size is 15 MB.\")"; finishedFunction = "attachmentUploadContainerUpdate()"; configurationName = "CCCommunication.attachments"; editingContext = communication.editingContext; attachment = communication.attachment1; selectFileLabel = "Choose a file"; editorEditButtonClass = "prettyButton"; selectFileButtonClass = "prettyButton"; cancelButtonClass = "prettyButton"; editorEditLabel = "Change"; injectDefaultCSS = false; clearUploadProgressOnSuccess = true; innerUploadContainerId = "attachmentUploadContainer"; outerUploadContainerId = "attachmentUploadContainer"; }
Anyway, everything seems to work, except when someone tries to upload a file slightly bigger than 15 mb, it fails, with the alert, then it goes back to the choose file. . . then within a second the button disappears and the message "Upload Starting . . . " displays, despite the upload having already failed. There appears to be no way to clear this, other than closing the message and starting a new one (thereby losing whatever we had), or closing the attachment modal dialog and sending it with what we have. Neither is ideal.
Oddly, apparently when the file is way too big (e.g. 30 mb) this issue does not happen. It fails, and goes back to the choose file, as I would expect.
So . . . this appears to be related to the progress polling, though the progress bar doesn't appear. Dave Avendasora looked at it too, as did another guy here. None of us can seem to resolve it without digging much deeper into wonder. So I thought it would be a good idea to post. Dave will follow up.
Any ideas?
Andrew Kinnie |