Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
5

Losing file data in repl.it

GandalfRoblox
GandalfRoblox

Please tell me a fix for this, my program is over 20K lines long and it would be too hard to change it all, I use .json to stroe data, would somebody please tell me how to stop losing data? Ty.

2 years ago
You are viewing a single comment. View All
2
Coder100
Coder100

Hi! Don't use JSON to store data, it actually won't save if you aren't on the repl. This is a security thing. Once repl.it got DDOSed from this (iirc).

Anyways, here are the permissions:

  • Your repl can view any file anytime
  • Your repl can write to any file anytime
  • Your repl cannot save to any file if no owner/collaborator is present.

Ask

@turbio
for more on the repl.it api.

2 years ago
2
SLMJ
SLMJ

@Coder100
then how do you save data? does Replit Database save if you aren't on the repl?

1 year ago