Hi Paul, I suppose you want to inspect the document and decide to allow or deny it.
Why not simply delete the created ERAttachment if required (before the saveChange)? Or create a dedicated EditingContext for the attachment and transfer it to the real EC when validated. If you want to intercept the stream before because the content may be big and even stop the upload before it is completed, you will need to dig deeper. I don't think it is even possible with the default adaptor. Samuel Le 2013-09-04 à 06:17, Paul Hoadley <[email protected]> a écrit : > Hello, > > I'm using ERAttachmentFlexibleUpload to upload files to become ERAttachments. > I now want to examine the file content at upload time. Is there any way I > can get the file content itself before (or after) ERAttachmentFlexibleUpload > whisks it away to become an attachment? I got excited by the 'inputStream' > binding on AjaxFlexibleFileUpload, but if that's even being passed through, > it's turning up null. That is, this: > > <wo:ERAttachmentFlexibleUpload editingContext="$document.editingContext" > attachment="$document.erAttachment" inputStream="$inputStream" > finishedAction="$finished" /> > > leaves inputStream null when finished() fires. Am I using it wrong, or can I > not expect this to work? > > (Obviously I could try using AjaxFlexibleFileUpload directly, and then > promote the file to an attachment later by hand, but I had hoped to do this, > you know, without any actual effort.) > > > -- > Paul Hoadley > http://logicsquad.net/ > > > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list ([email protected]) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com > > This email sent to [email protected]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
