No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
When you tag a ViewModelColumn with BlobDownloadLink - the UI will render this as a download. It will use the controller named GetVMFile to allow for a download of content type application/octet-stream. | When you tag a ViewModelColumn with BlobDownloadLink = true - the UI will render this as a download. It will use the controller named GetVMFile to allow for a download of content type application/octet-stream. | ||
If your request has accept-encoding:gzip - then we will gzip the file on the server before sending it back. The server will tag the response header like this: | If your request has accept-encoding:gzip - then we will gzip the file on the server before sending it back. The server will tag the response header like this: | ||
content-encoding:gzip | content-encoding:gzip |
Revision as of 10:12, 27 May 2017
When you tag a ViewModelColumn with BlobDownloadLink = true - the UI will render this as a download. It will use the controller named GetVMFile to allow for a download of content type application/octet-stream. If your request has accept-encoding:gzip - then we will gzip the file on the server before sending it back. The server will tag the response header like this: content-encoding:gzip content-length:16660 content-type:application/octet-stream
The content-length will in this case be the zipped length
The viewModelColumn that was tagged with BlobDownloadLink may be accompanied by a _FileName column.
If your tagged columns was MyColumn - and you add a MyColumn_FileName on the same nesting (this need not be shown but must exist) - and that column is of type string - then the GetVMFile controller will mark the response as attachment with result as a file name.