File not found although it exists

Bug description:

When I upload a large file (starting from 100 MB) it is easily loaded into the editor, but when I try to display it on the Internet, I get an error that the file was not found

Bug appears at this link:

Screenshot(s)/Screen Recording:

Browser/OS/Device: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Replit Profile:

1 Like

What is an ASAR file? :thinking:

You can’t view a file that isn’t natively supported by the browser (examples are HTML, PDFs, etc.)

You would need to download the file to be able to properly view it.

Hey @teleweb!

HTML Repls run on a separate runtime than other Repls, which allows them to statically host files efficiently. However, that has its drawbacks, as noted in my response here.

If you move each folder and file around, that should let our service know that they exist. If you’re still having trouble, we recommend creating an Express server on a Node.JS Repl instead.

1 Like

I don’t think that’s the problem. They’re trying to view an ASAR file in their browser…

1 Like

what exactly heppens when you upload it? does the uploading spinner hang?

it doesnt appear to be inside your project.

Is the file in any folders?

look at my screenshot its not uploaded in the repl i dont think

It used to be, I think they updated it.

But GUYS, the browser cannot VIEW ASAR files!! I don’t think there is more to it

1 Like

no the issue is it should download it right? he wants it to be downloaded when you follow the link right? either replit has an issue with that file type or the file is too big to upload to replit

mabie try uploading the file to github then doing git clone (repository url) then you can move the file into the correct directory using the mv command in the shell. i hope this works for you


OP clearly mentioned they’re trying to view it.


ok mabie try the git clone method
if that doesnt work then mabie replit doesnt have support for that file

This has nothing to do with Replit.


Does this happen when said file is moved within or directly uploaded into a sub-directory, or does it happen regardless of its place in your project’s files? (Reason being is that was able to reproduce a similar issue a while back, need to find the post though)

Yeah so it’s a type of file that can’t be viewed in the browser. Not a bug, IDK why we are prolonging this topic.

Actually, IIRC if it can’t load within the browser it will just download to your system. That’s how big Download buttons trigger your browser to download some exe. If OP doesn’t see their content on the browser, but it isn’t a 404, your browser is acting as expected. If a 404 is returned, it could be an issue with Replit. (see edited post above)

Think I found possibly a relevant topic:

It’s not really an issue though…It probably just couldn’t find any HTML so it defaulted to a 404.

And if that is a problem then the OP topic should be reworded.

1 Like

It usually wouldn’t do that though, for example: if I were to navigate to a CSS file stored on said server, it would display in HTML, but the file itself is not HTML.

And this:

Regardless though, @teleweb could you please provide more information regarding

What appears on the internet?

If you are trying to display the image the as this image name in any tags like <img> ect then because it’s in a folder you need to add /folder_name/ before the image. For more information: My tutorial on folder image problems.

what im trying to say is if you use git then import the file mabie that might work