Re: [Xsltforms-support] XForms Upload with AJAX
Brought to you by:
alain-couthures
From: Dominique R. <dom...@or...> - 2009-06-17 08:29:11
|
I just have read your trick proposal. Unfortunately any other solution leads to same problem : security, overloading, server dependencies Better to detect unecessary intermediate uploading Dominique _____ De : COUTHURES Alain [mailto:ala...@ag...] Envoyé : vendredi 15 mai 2009 11:20 À : xsl...@li... Objet : Re: [Xsltforms-support] XForms Upload with AJAX 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 |