The folder wwwroot that I drag and drop to deploy contains the file /pdf/foo.pdf. I want this pdf to be displayed in a new tab with <a href="pdf/foo.pdf" target="_blank">Open pdf</a>
but my Blazor app tells me
Sorry, there’s nothing at this address.
On this “Sorry”-page the Dev Tools > Sources > Page display the file foo.pdf but when I download it from there, there is no text in the file, where should be “test pdf”.
Hm, I did not test it on further devices before, but now. It works on my smartphone but not on private laptops (with different anti virus apps).
Any ideas what the problem could be?
I disabled my anti virus app. It is still not working.
I also tested different browsers. Chrome and Edge only show the “Sorry”-page but no message in the console.
Firefox does not show the “Sorry”-page but the following message in the console:
The error is not a browser 404, it is a message from within your app (as evident by looking at the page source—see below), which indicates your app is handling the request (at least in some instances.)
Sorry, I did not mention this. I know, it is not a browser message but from within the app:
So, it is not an anti virus problem, because it works on your machine but only for specific browsers.
But it is also not a browser problem, because it works in your Chrome but not in mine.
There is an issue within your app I might suggest. However, as I had not heard of Blazor prior to reading your original post, I cannot offer any insights as to what the cause (potentially) is, or a solution.
You might find more assistance via a Blazor-specific community.
Hi, I have a similar question. I created a site with Netlify, but the files linked to in my index.html are not showing up for some reason. I used the drag and drop method with the folder called “site”, where I have stored my index.html which has all the code needed for the site and another folder called “blender renders” which just has a bunch of the media files in it. I also attached an example of the way that I am linking to the files from my index.html code.
Should I do something differently whether in the Netlify deploying process or just my code itself, to get the files to show up on the https website?