Re: [Xsltforms-support] XForms Upload with AJAX
Brought to you by:
alain-couthures
From: COUTHURES A. <ala...@ag...> - 2009-05-15 09:21:41
|
Hello, What would you think about this bad trick for xforms:upload support in XSLTForms : 1. as soon as it is selected or just before submission, the corresponding file is uploaded to the server, alone, in background 2. the server creates a temporary file for it and returns the corresponding URI (security problems to consider...) 3. this URI is stored in the instance and normal processing can continue For example, the URI could then used to be rendered as an image with an xforms:output. For a base64 storage in the instance, the server should return the contents instead. Yes, the file contents would be sent 3 times instead of just one time. Would this be a big problem ? BTW, inline images are not supported in IE7 but in IE8 (workarounds seem to exist for IE7...). Anyway, a sort of generic echo program would be required on the server... Thank you for your comments, -Alain |