Skip to main content

All Questions

Tagged with
1 vote
0 answers
57 views

Forwarding file stream to client in Blazor WebServer in .NET 8

I'm writing a Blazor WebServer application which, at one point, allows the client to download a file. This file is forwarded from another API, which offers it as an application/octet-stream message, ...
Evaristo's user avatar
  • 111
0 votes
0 answers
47 views

Updateprogress won't show

I have 2 aspx pages with 1 button on each page. When I click the button on the first page, it does some work and then redirects to the other page. When I click the button on the second page it ...
NiclasNilsson's user avatar
0 votes
1 answer
96 views

How can I stop the stream when I pause the download file in browser because of it leads memory leak

As title say,I am downloading a file ,it's well done unless I pause the download progress.I am using the following backend codes to download my files,which can install >10Gb file(mostly important). ...
wangwang's user avatar
0 votes
0 answers
79 views

Why my memory usage blow up after stopping a download?

I an using the following codes to implements download a large file, it return a stream to the front-end, and using streamSaver to receive the stream and write to the local file in the front-end. back-...
wangwang's user avatar
0 votes
1 answer
47 views

Download file, stops at Responce.end()

I have a code that zips files in a folder and downloads the zip file But after the download the code stops at response.end(). I have code after that delete all the files in the folder, but it never ...
NiclasNilsson's user avatar
0 votes
1 answer
381 views

Why won't ASP.NET download .py or .apk files?

I'm new to ASP.NET and Razor pages but this makes no sense. I'm trying to download a few files from a webpage and it's not working. I switched from hosting the static pages raw(no ASP.NET) where it ...
Trevor Stauffer's user avatar
0 votes
1 answer
387 views

Downloading file from web in Python with aspx file

I found some python code on the web to download an attachment from a website (e.g. an excel or pdf file). This code works perfectly. Except when the weblink to download a file shows aspx or asph. The ...
J_Py's user avatar
  • 61
0 votes
1 answer
165 views

Why is download button disabled after aspx page is downloaded as a file on my machine?

I have downloaded an aspx page with a .file extension using python. The said file opens up in the web browser however the download button is disabled. This is the URL from where I have downloaded the ...
technophile_3's user avatar
0 votes
2 answers
2k views

ASP NET MVC download ZIP file

I'm trying to download a ZIP file in ASP NET MVC. I have done in ASP NET Webforms, and it works correcly, but I do the same in MVC and I don't get the same result, I tried the following: public ...
Chariot's user avatar
  • 55
1 vote
1 answer
2k views

How to download all files in a directory in ASP.NET using C#

I am currently learning uploading / downloading / deleting files in C# asp.net. I figured out how to delete every file in a folder with code like this: protected void DeleteAllFiles(object sender, ...
hidden82's user avatar
0 votes
1 answer
278 views

How can I let user select the location for downloading an Export to Excel file in asp.net webforms?

I'm exporting an excel file that's created dynamically at run time from DataTables in aspx.cs file at server side using ClosedXML lib. I want to let user select the downloading file location at client ...
Hamza Shahzad's user avatar
0 votes
0 answers
483 views

Export to CSV from Gridview with style using VB.net

How to export Gridview data to csv with gridview styles.Below code will do for Excel but i want to download CSV. Response.Clear() Response.Buffer = True Response.AddHeader("content-...
aadi's user avatar
  • 59
1 vote
1 answer
288 views

Prevent download of PDF file from site

I have files stored in the server with the Plesk panel, currently, any person with the link of my site can access the file and download it. Is there any way to prevent the download for all the users?
Vishal's user avatar
  • 163
0 votes
1 answer
392 views

Serving file for download. Browser ignores filename and uses "file.nothing" instead

My application has a blazor page that calls an API function to generate a report and serve that report to the browser for downloading. For this, I am using the ControllerBase.File method, specifying ...
tassieboy's user avatar
  • 160
1 vote
1 answer
2k views

Spire.xls - return a File from a stream for client download

Here is what I'm trying to accomplish. I am creating an asp.net MVC application. My restrictions are that I cannot programmatically save anything to the file structure of the server, so I can't save ...
Tim Jones's user avatar
  • 195

15 30 50 per page
1
2 3 4 5
43