All Questions
426
questions
0
votes
0
answers
52
views
NodeJS ECONNRESET error onStreamRead while downloading large csv
I'm trying to download a very large gzipped csv file, hosted on a S3 server. I want to insert each csv row to my database. To achieve that I get the encoded stream, unzip it, parse it and save it to ...
2
votes
0
answers
45
views
This API controller is working fine locally but when the server is deployed as lambda function the downloaded zipfile is corrupt
export const downloadFiles3 = async (req: Request, res: Response) => {
const key = req.params.key;
try {
const getObjectParams = {
Bucket: process.env.AWS_BUCKET || '',
...
1
vote
2
answers
38
views
Getting Error Of Requires Range header How can i fix it?
Here is my code, It will stream properly but when try to download it return error of Requires Range header.
app.get('/download-file', (req, res) => {
const filePath = req.query.file;
if (!...
0
votes
0
answers
24
views
How can I wait for the downloads to be completed in Puppeteer? [duplicate]
I have a form that after pressing the submit button starts downloading a file.
I need to wait until that download has been completed, then move on to the next step.
How can I do this?
//get all years ...
2
votes
1
answer
41
views
Node JS Express - Download window doesn't appear until all file is sent in header response
I'm working with Express to create an api that allow to download a PDF file.
Download is working fine, but I don't see the download window where I choose the folder I want to download, until all "...
0
votes
0
answers
30
views
Node.js/Express File Download Returns 0-Byte Plaintext Files
When I trigger a file download from my frontend (utilizing a React app and an async Redux action for the download), the download initiates but the resulting file is always 0 bytes and is of a ...
0
votes
1
answer
22
views
Issue with res.download()
I've problems trying to apply res.download(filePath, originalName) with Multer, since it saves/copies a file from the /uploads folder to /downloads with fs.copyFile() when I apply my logic to it but, ...
0
votes
0
answers
36
views
Download the uploaded image through input file in react
what I want is when the user selects a profile pic the pic gets stored in the client-side folder does anyone have an idea?
I tried Multer but it stores the images in the server-side folder in my case ...
0
votes
0
answers
57
views
Puppeteer Automated PDF Download Fails After Initial Download
I am utilizing Puppeteer to automate the process of downloading PDF files to a specific directory on my PC. The functionality works as expected during the first download, with the PDF being correctly ...
0
votes
0
answers
37
views
Downloading an audio file from MongoDB Atlas (GridFS)
I have an app on Heroku, handling audio files stored with GridFS in a database on MongoDB Atlas.
This app uses Next.JS and express.
For the sake of the question, let us consider this record that I ...
0
votes
1
answer
144
views
How do I clear/empty the text in the input field after a download event is finished? -- Node.JS
I have struggled hours and hours dealing with the text(URL) which is not emptied after a download is complete. The app I'm making now is a video downloader and in the client side, a URL is supposed to ...
0
votes
1
answer
72
views
How can I wait for an image to download Javascript?
Using Nodejs and image-downloader. I am trying to run a compiler function at the end after all the images have downloaded. The imageDownload function gets triggered multiple times. The console.log('...
0
votes
1
answer
499
views
Downloading file js
I have noticed when i download a bigger file it doesent download in smaller packets with a loading bar, you just have to wait a while and then it pops up at 100% is there anyother method that fixes ...
0
votes
0
answers
74
views
Unable to download generated file using node js to pc
Hello Stack Overflow community,
I am currently working on an Express.js application that serves as a certification system. The application is designed to generate personalized certificates in PDF ...
0
votes
0
answers
83
views
Unable to download zip file using NodeJS res.download
I have a process that selects a folder, zips the contents, and downloads the zip file to the downloads folder of the user. It was working quite well, but of late fails on larger zip files. The ...