321 questions
2
votes
1
answer
85
views
How to save Google Cloud GET Object API mediaLink response to local storage?
I wrote this code that uses Google's Cloud API to get an object from my bucket and download it. It works perfectly when I had my bucket set to public (allUsers added to Principal w/ all the required ...
-1
votes
1
answer
86
views
Store file in local C drive not in default Downloads folder
In the the image above, after I click the upload button, I want to store the file in my C drive. But by default it's saved in the Downloads folder. I need to store the file in a user defined folder ...
0
votes
0
answers
441
views
How can I solve dependency errors trying to install FileSaver.js
I try to install FileSaver.js but it's giving me some trouble. I am using the following call:
npm i file-saver
But I don't get a success:
npm error code ERESOLVE
npm error ERESOLVE could not resolve
...
0
votes
0
answers
257
views
.xlsx file corrupt after download from POST API, but working fine in Postman
I have implemented an POST API for downloading some file from the browser, triggering which leads to download the file in my local system from the server through flask API.
Now when opening the file, ...
1
vote
1
answer
268
views
FileSaver saveAs function does not download all the files using Promise.allSettled
I have a TypeScript function that tries to download a large number of small documents concurrently. Here's the code:
const bulkDownload = async (analyses: FullAnalysesResponse[]) => {
...
1
vote
0
answers
141
views
Angular file-saver package replace special characters with underscore
I am creating in back end string connected with Latin and Arabic characters. I would like to create this string in Left To Right order:
Console.OutputEncoding = System.Text.Encoding.UTF8;
var fileName ...
1
vote
1
answer
56
views
How to download data based on current selection only?
I have a simple chart I built with d3.js. There's a dropdown to filter between different views of the data, and want the user to be able to download the associated data based on their selection.
Using ...
0
votes
0
answers
176
views
How to add metadata (exif) to the generated blob from canvas and download it using fileSaver
I have a project in Angular and I generate a map image in canvas using OpenLayers, then I download it locally with the extension .png/.tiff using fileSaver. How can I add metadata to the downloaded ...
0
votes
1
answer
211
views
Can we render and generate multiple .docx files with docxtemplater and output them as one .zip file?
I have had no issue creating multiple functions that geenrate .docx documents using the docxtemplater library.
However, below I have created two instances of "docxtemplater", rendered and ...
0
votes
1
answer
326
views
Writing In a Predefined word document using angular, docxtemplater,pizzip,file-saver
I want to manipulate a .docx file using angular.
I wrote a program and implemented the docxtemplater, but in the .docx it is writing undefined.
This is the final output of file.docx
My name is ...
0
votes
1
answer
159
views
Get the download status of the plugin file file-saver in React
In React, I use the file-saver plugin to download PDF and it works well for me. But I want to get the state or status of the download process, so that I can change the text on the download button. ...
0
votes
1
answer
55
views
Excelljs file not downloading properly
I'm using Exceljs to write over an xlsx template file in the server and return it to the front so that is saved as an excel file. But the file is saved with [Object object] as the value of the first ...
1
vote
1
answer
3k
views
Minio 403 Forbidden HEAD request using saveas (FileSaver.js)
I try download file using FileSaver.js (saveAs(minio-prefetch-url,'file.pdf')) but request HEAD is send and minio response with 403:
Status Code: 403 Forbidden
Referrer Policy: strict-origin-when-...
1
vote
0
answers
387
views
Module not found: Can't resolve 'file-saver' in '/home/node/app/src/reducers'
i ran the installer and returned:
npm install xlsx file-saver
added 10 packages, and audited 15 packages in 13s
1 high severity vulnerability
Some issues need review, and may require choosing a ...
0
votes
0
answers
199
views
FileSaver.js - saveAs does not display Save As dialog in Chrome extension
I am working on a Chrome extension that scrapes the menu information of a restaurant on a food delivery platform (e.g. UberEats, FoodPanda) and stores it in an Excel file as well as downloading menu ...
0
votes
1
answer
78
views
FileSaver and zipJs Issue
I have a modal that contains a button to separate my json data into different .json files and download them as a zip file.
I have the code below
function createZipFile(jsonData) {
const zip = new ...
3
votes
2
answers
2k
views
File Download Prompt not Showing in Samsung Internet Browser App on a Samsung Galaxy Phone
Context and Problem Statement
We are currently developing a single-page-application with an API backend. The API provides files to the single-page-application which are generated on-the-fly on request ...
1
vote
0
answers
44
views
Download and copy function is not working on mobile devices
Download and copy function is not working on mobile devices but works fine desktop. Both in android and IOS.
Using filesaver.js for download and navigator clipboard.writeText for copy function. Any ...
-6
votes
1
answer
314
views
Calling an onclick function in for loop with a table
i am trying to have a button in a table column and when its clicked, i want to invoke a service with values from that row.
can someone please help achieve this.
function setResponseData(data, length)...
2
votes
0
answers
155
views
How to detect available disk space when saving a file in browser
I have implemented a screen recording feature into our webrtc conferencing app. (Normal MediaRecorder API)
I am using FileSaver.js to save the recordings.
Everything is working just fine.
I was ...
0
votes
1
answer
289
views
Download Image of d3 visualization in Svelte?
I'm trying to download an image of a visualization created in d3, in Svelte. I've created a repl to show what I've tried so far. It's just a throwaway chart-- so don't mind how ugly and useless it is, ...
2
votes
1
answer
1k
views
"Word found unreadable content" after downloading file with C# Web API
What I'm Trying To Do
I have an Angular client app that needs to download a file (in my case an editable Word Document). This file is on a network drive.
What I'm Getting
I've been trying different ...
1
vote
1
answer
601
views
React Amazon S3 - Image uploaded to S3 Bucket CORS problem - File Saver
I have a problem with images being uploaded to the S3 bucket. I can upload them on S3 bucket without any problems, but I have a problem getting them from the S3 with signed URL
What works
When I ...
0
votes
1
answer
752
views
How to Download filesaver
I am trying to use filesaver.js to create a file and write in it user info. But, I have a kind of silly problem. I am unable to install filesave.js in vscode. I have used the three following commands: ...
4
votes
0
answers
2k
views
Saving file using url, without opening new tab
In my project I use file-saver to download files.
When the file is in blob format, downloading acts as expected (i.e. starts downloading file, without opening new tab), however if I use URL as a ...
4
votes
1
answer
4k
views
Cannot download pdf from file-saver.js react
I am trying to download the pdf from this url :
http://www.africau.edu/images/default/sample.pdf
I followed the example and wrote the code below.
import { saveAs } from "file-saver";
const ...
1
vote
0
answers
39
views
How do I store time using the Ebuka Rufus Onuchukwu code for saver app
Does the code below detect external storage on android ?
private static boolean isExternalStorageAvailable() {
String extStorageState = Environment.getExternalStorageState();
...
4
votes
2
answers
3k
views
File saver is deprecated. How to resolve this issue from SonarQube
Working on filesaver, while running SONAR QUBE it shows " 'fileSaver' is deprecated. use { autoBom: false } as the third argument "
this.http.get(`getTemplate/${doc.id}`, { responseType: '...
1
vote
1
answer
1k
views
How to download a URL file into a specific directory in a project in angular?
I am getting file URL in an API response. The URL is downloadable, if I hit it into browser then the file will be download into the system's Download folder.
But I want to download this file into a ...
-1
votes
1
answer
261
views
Convert blob object into base64 javascript
I am trying to convert blob object into base64
var out = doc.getZip().generate({
type: "blob",
mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
}...
2
votes
0
answers
118
views
How to Call the Generated file of filesaver.js into the backend code
I used filesaver.js to allow me to download the file successfully.
var out = doc.getZip().generate({
type: "blob",
mimeType: "application/vnd.openxmlformats-officedocument....
0
votes
0
answers
532
views
how to call blob object as file to the asp.net MVC Controller
I successfully downloaded the file with the help of filesaver.js.
var out = doc.getZip().generate({
type: "blob",
mimeType: "application/vnd.openxmlformats-officedocument....
1
vote
0
answers
477
views
downloading application/zip file with javascript (with file-saver)
I am trying to download a zipfile that my webapp receives my backend in javascript.
I am using the file-saver library, just because I use it in another part of the app, but I would also be ok, doing ...
1
vote
0
answers
206
views
Migrating ngFileSaver from bower to node package breaks
I have an Angular 1.6 project which did build using:
node 10.16.0
bower 1.8.14
gulp 3.9.1
and with the command sequence:
npm install
bower install
gulp
It now breaks at the bower install step with ...
2
votes
2
answers
4k
views
Angular 11 - To add files zip using JSZip
I am trying to add several txt files to a zip file and download it locally.
For this, I am using the libraries: JSZip and FileSaver.
This is the "typescript" code, of the download button:
...
0
votes
1
answer
2k
views
Angular 11 - Compress using JSZip library
I have to compress several txt files in a zip that come to me from the response of a service in base64 format.
This is the code to download the zip with its compressed txt files under the "txt&...
3
votes
2
answers
1k
views
angular-file-saver is not installed
Hi All Experts of Angularjs
I am using bower install for my angular project
"file-saver.js": "^1.20150507.2",
"angular-file-saver": "^1.1.3",
I am getting ...
2
votes
1
answer
9k
views
Content-Disposition: download file automatically
The API call to the server is returning a zip file with Content-Disposition in format attachment, <filename>
I am using FileSaver's saveAs to save the file.
this.ajax.raw(requestUrl, {
...
1
vote
0
answers
951
views
download multiple images as zip file using javascript in angular
I need to download a list of images using javascript in angular as a zip file..
so my website is an shopping website..if we click on a product it will open allthe images related to it.This is same as ...
0
votes
1
answer
2k
views
React dom-to-image error when there is an external image link in the dom
I wanted to save a dom as an image, I used dom-to-image it works when there is no external image link in the dom
dom-to-image
This Works
It saved the image
But when i add an image tag with an ...
0
votes
1
answer
2k
views
Angular FileSaver.JS change downloaded file name
I am using Angular and FileSaver to save a file but I want to specify a name to the downloaded file
this._UsersService.downloadReport(id).subscribe(data => {
FileSaver.saveAs(data);
});
0
votes
0
answers
190
views
Unable to open any file from browser
i'm using file-saver package to download files. The downloading is not the issue it seems to be the opening of any file. I console.log file from the files function logic below and get this:
File {name:...
-1
votes
1
answer
4k
views
Download Word .docx as Blob file from Angular on mobile devices
I am trying to download .docx file from REST API (.NET Core FileContentResult) in Angular application. Everything is working fine on PC, but there is problem with downloading .docx files in VMware ...
1
vote
0
answers
73
views
Is there a way to (re-save) an image (that already exists locally) with javascript, "without opening the image in the tab"?
I have an anchor tag that refers to an image that already exists on my local machine,
What I want is, when the user clicks on it, it downloads the image (and not open it in a tab)
The current behavior ...
0
votes
1
answer
3k
views
Why FileSaver saveAs won't work with a JSZip?
First time posting, this is the whole code (majority of it I found online and tweaked some things to serve my purpose), but more specifically, my error is towards the end where I get.
Uncaught ...
0
votes
1
answer
2k
views
How to save PDF from received binary response from axios
I would like to save a PDF from received binary response from axios get.
I'm passing to the request the following headers:
const config: AxiosRequestConfig = {
headers: {
Accept: 'application/...
0
votes
1
answer
453
views
How to save pdf file from Firebase in local folder from web
How do I download and save a pdf file from Firebase storage.
During upload I save upload infomation on real time firebase node like this:
while my storage is as follow:
My save btn is linked to this ...
0
votes
1
answer
469
views
SVG download results in file with "invalid SVG Code"
I am building a site where people can customize SVG color and then download it so that they have illustrations that match their brand colors (without using an art program). Right now I am trying to ...
1
vote
1
answer
259
views
Download pixel art drawing as .png in PhaserJS
I need to download the created pixel drawing from this Phaser example as a .png image via FilesSaver.js but the canvas returns null.
Error:
Uncaught TypeError: Cannot read properties of null (reading ...
0
votes
1
answer
3k
views
How to download Base64 .docx file?
I am trying to download .docx file which I receive from the backend.
Below is the object I receive:
And I am trying to download it as follow:
const blob = new Blob([fileSource.FileData], { type: ...