Jump to content

How to Load Assets from different folder


Recommended Posts

Hi guys,

I am working on an auto-update system for my project. I use Cordova to make Android build. The update system will check and download new files to cdvfile://localhost/persistent/app/ location. For example: "cdvfile://localhost/persistent/app/img/cat.png". Is there a way that I can load images from this folder, such as "game.load.image('cat', 'cdvfile://localhost/persistent/app/img/cat.png');"? So that I can use the new image instead of the old one. I know that this file is not on the server so I don't think I can set up 'Access-Control-Allow-Origin. Is that possible for me to load file from a location like that? What can I do if it is impossible for me? 

Bare with my English grammar. If you are confused about what I am asking, just leave a message. Thank you very much!


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...