edit file extension
This commit is contained in:
parent
2351ee51eb
commit
7d8096be4c
|
|
@ -171,7 +171,7 @@ export const ViewContentPage = () => {
|
||||||
try {
|
try {
|
||||||
const fileUrl = content?.data?.display_options?.content_url;
|
const fileUrl = content?.data?.display_options?.content_url;
|
||||||
const fileName = content?.data?.display_options?.metadata?.name || 'content';
|
const fileName = content?.data?.display_options?.metadata?.name || 'content';
|
||||||
const fileFormat = content?.data?.content_type?.contentFormat || '';
|
const fileFormat = content?.data?.content_ext || '.raw';
|
||||||
await WebApp.downloadFile({
|
await WebApp.downloadFile({
|
||||||
url: fileUrl,
|
url: fileUrl,
|
||||||
file_name: fileName + fileFormat,
|
file_name: fileName + fileFormat,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue