Domanda

I am working on a content management project where from a tool we generate html/js/css and image files. The data we store in JSON format.

Now, I want to play the contents using browser without any server, i checked some threads and it suggests that it may be possible using file:// protocol, I want to check if there is any limitation if I am not using any server. Or it is not possible to omit http server..

The other thing is that, I can't use concept of local storage because my data size is huge and in HTML5 the max size supported is 10 MB my requirement is approx 25 MB.

Please suggest.

Thanks.

È stato utile?

Soluzione

Seems like an odd thing to do for a CMS, no? You can use the readfile API but you're limiting yourself to IE10+: http://caniuse.com/filereader

Edit, maybe should've been a comment but... If the data is only on clients computer, who can read the content of the CMS? Or are you creating 10MB+ files on every users computer?

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top