# Javascript MIME Type Error

**URL:** <https://forum.infinityfree.com/t/javascript-mime-type-error/106094>\
**Category:** Hosting Support\
**Created:** [February 17, 2025, 8:48am UTC](https://forum.infinityfree.com/t/javascript-mime-type-error/106094 "2025-02-17T08:48:05Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![JavesPotato](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/javespotato/32/53167_2.png) [@JavesPotato](https://forum.infinityfree.com/u/JavesPotato)\
**Post date:** [February 17, 2025, 2:49pm UTC](https://forum.infinityfree.com/t/javascript-mime-type-error/106094/4 "2025-02-17T14:49:08Z")

</div>

I didn’t see the error on your website. I found other problems, though.

- ~~The webpage will be rendered empty when visited without the `https` protocol~~ ( **Edit** : Probably it’s because of the network cache).
- CORS problem was detected from a certain network request (i.e: http:://localhost/api/charts/v1).
- ~~The `index.html` page does not work. A 404 error is being emitted from the page. The website will only work if you try to access it without `/index.html` at the end of the URL~~ ( **Edit** : The `.htaccess` file might have caused it).

* * *

> [@dejames13](#):
>
> is there a file size limit or anything?

Yes, a 10MB limit was imposed on every file. The file is going to be deleted if the size reaches beyond the limit. However, that was not the reason why the page got rendered empty. Let’s assume that the file has been deleted due to a violation of the file size. Unless you had changed the default 404 page provided by Infinityfree with your own, you should not have seen an empty page in the first place.

> [@What is the file/upload size limit](https://forum.infinityfree.com/t/what-is-the-file-upload-size-limit/49308):
>
> On all InfinityFree servers is a file size limit of 10 MB. It’s important to note that this is a file size limit and not an upload limit. The difference is subtle, but important. An upload limit could be set through PHP settings, but this limit is enforced on the file system level. No PHP configuration can override this limit and it applies to files uploaded through FTP or the file manager as well. Can the limit be increased? No. The size limit is fixed and cannot be increased in any way. 10 M…

> [@Why are my files deleted after uploading them](https://forum.infinityfree.com/t/why-are-my-files-deleted-after-uploading-them/49310#p-192755-the-file-exceeds-the-file-size-limit-4):
>
> Sometimes, when you upload a file, the upload is completed but the file is deleted immediately afterwards. This is usually caused by one of the following issues: The file is not in a htdocs folder All websites files must be uploaded to either the main htdocs folder, or to the domain specific htdocs folder (like example.com/htdocs). You cannot upload files to other directories on your account. If you try to create or upload files anywhere else, they will be deleted automatically. The file type…

---

_[View the full topic](https://forum.infinityfree.com/t/javascript-mime-type-error/106094)._
