Ah that makes sense now. I guess there isn't an easy solution to what you want to do. Also I didn't realize the sharing aspect was important. Otherwise you could pass the data from one subdomain to the other through the server with an API POST.
thknas
These two pages share the same origin and can both access the origin specific local storage.
To see this, open https://perchance.org/ai-text-to-image-generator and https://perchance.org/ai-character-chat in two tabs of the same browser. In the first, click F12 to open dev console and paste localStorage.setItem(‘perchanceExample’, ‘iSeeYou!’) and press Enter. You will see it appear in the local storage of the second page.
Perhaps I’m not understanding what you’re saying. Or maybe am I, and it IS possible to do it the way I suggested but there is some other valid reason for not doing it like this that I haven’t thought of. The point is, it seems like you don't really need these zip files and the fact that you have them anyway and are holding on to them indefinitely without what seems like a valid reason seems sus to me.
Why not just add the character data to local storage when you click "chat with them" on the ai-text-to-image-generator page and then just navigate directly to the ai-character-chat page?
I think this is inconsistent and confusing to the user, because in other situations the data is not saved:
https://rentry.org/perchance-ai-faq#does-it-save-the-data-that-i-put-into-it https://lemmy.world/comment/5709061
In the scenario I describe, the results of the prompt, additional input from the user (assuming they edit the character), and the image are all saved to the server and done so in a public and indefinite manner.
The two main issues I see with this are: One, the user's privacy is not protected, if for example, their browser history is compromised--whoever sees their browser history also sees all their characters and the data therein (yes I know they shouldn't have put personal information in them). Two, there isn't any peer review process for the characters that are created. So an individual could create questionable characters/images and host a page linking to the perchance URLs of these characters. I know the team is fairly confident they can prevent illegal stuff from being created but it seems safer not to risk something like this happening. It seems like it would not help Perchance's reputation.
This is just my opinion. Maybe my concerns aren't a huge deal. But I just don't see a major benefit of keeping them indefinitely that would outweigh even minor risks. Of course, maybe I am missing something big.
Since you weren't concerned about my second point I guess that means you are 100% certain that no one can circumvent the filters to create illegal images. Otherwise, if you don't change the way it works or at least periodically delete the zip files, people could basically use the server as an anonymous repository to save unregulated images that aren't traceable to an account or device.