Hi Isomorphic,
it seems that it is not possible to download a file added via the GUI and FileItem/UploadItem via RESTHandler in current 12.0p.
I tried this:
which results in a normal FETCH and this logged line:
I had a look at clientside RestDataSource docs, which only speak about Browser downloads in REST environments as well as the serverside RESTHandler docs which don't seem to handle that topic at all. How do I best do this, download user-uploaded files via RESTHandler?
If this is not built in yet (?), also a DMI solution with manual fetch and setData() call would be OK.
Thank you & Best regards
Blama
it seems that it is not possible to download a file added via the GUI and FileItem/UploadItem via RESTHandler in current 12.0p.
I tried this:
Code:
<request> <dataSource>T_ATTACHMENT</dataSource> <operationType>downloadFile</operationType> </request>
Code:
java.lang.Exception: Operation type downloadFile not supported by generateSQLStatement
If this is not built in yet (?), also a DMI solution with manual fetch and setData() call would be OK.
Thank you & Best regards
Blama
Comment