Re: Using mysql, can't download attachments
Posted by aero on
URL: https://discuss.orbeon.com/Using-mysql-can-t-download-attachments-tp4352414p4358002.html
SOLVED:
for whatever reason in my form bindings I had:
<xforms:bind name="file-1" id="file-1-bind" type="xforms:anyURI" ref="file-1"/>
the type should be:
type="xs:anyURI"
otherwise the file upload will fail silently: immediately after upload the file will be downloadable (because it's in memory), after you press Save, the disk icon(unsaved changes) will not disappear, after you click save again, save operation will be reported as successful but now you won't be able to download the file since it hasn't actually been saved to disk.