Failure to save files

Website URL

Error Message

Subject: File Manager Fails to Save Large Files Across All Hosting Accounts

Hello InfinityFree Support Team,

I am experiencing a problem with the File Manager across all my InfinityFree hosting accounts.

I can open and edit files in the “htdocs” directories, but saving becomes impossible when a file exceeds approximately 1,000 lines. Files with 1,000 lines or fewer save successfully, while larger files return an error.

This is affecting the maintenance and updating of all my web applications, particularly large JavaScript files such as “app.js”.

Since this problem affects all my hosting accounts, could you please investigate whether there is a file editing limit, request-size restriction or other server-side issue affecting the File Manager?

I would appreciate your assistance in resolving this issue.

Thank you.

Other Information

Previously I was able to save the same file size without problems

Welcome to the InfinityFree community forum! Good to have you here.

  • Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
  • Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
  • AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
  • Solving an issue is a joint effort. Try the suggestions you get and report back what happened.

Not sure about any problem with the file manager, but I do know it’s not really designed for modifying files.

You’ll be better off downloading the file, making the edit on your pc, then re-uploading it

Two possible issues come to mind:

  • The code editor in the file manager is buggy and breaks when you try working on larger files.
  • The file with 1000+ lines hits the file size limit and is deleted.

I suggest you download the file to your computer first and make the changes there. Once that’s done, please check the following:

  • Have a look at the file size of app.js. Is it larger than 1 MB, or close to 1 MB in size? Then it is hitting the file size limit of our hosting, and is being deleted. Try splitting the code across multiple files to work around it.
  • Try uploading the file to the file manager using the regular Upload dialog instead of pasting the code into the editor.
  • If uploading the file directly also doesn’t work, try uploading the file with a desktop FTP client like FileZilla.

Please do let us know what worked for you. The feedback could be useful to others. And if there are issues with the file manager, we’d like to know so we can try to fix them.

Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.

A staff answer in an older topic says the File Manager isn’t built for large files. It’s meant for quick edits, and for anything bigger staff recommend a desktop FTP client like FileZilla. That could be what you’re hitting, and FTP would get around it for now.

The file manager in the control panel is incomplete

That topic is from 2021, though, and it doesn’t mention a line-count cutoff. So what’s the exact error text when the save fails? And how big is app.js in KB or MB? Those two details would show whether this is the size limit or something else.