fix filename
This commit is contained in:
1 parent
7d8096be4c
commit
46f3b22ec9
1 file changed
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user