fix filename
This commit is contained in:
parent
7d8096be4c
commit
46f3b22ec9
|
|
@ -174,7 +174,7 @@ export const ViewContentPage = () => {
|
||||||
const fileFormat = content?.data?.content_ext || '.raw';
|
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,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error downloading content:', error);
|
console.error('Error downloading content:', error);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue