Kobaltic Posted January 28, 2015 Share Posted January 28, 2015 Is there a way to simply load all images in a given folder? I want to let users upload their own images and simply load everything from a folder without knowing the names of the files. Link to comment Share on other sites More sharing options...
rich Posted January 28, 2015 Share Posted January 28, 2015 Nope - you'd need a server-side script that has enough permissions to read the folder contents and dump out a list of files it finds, that your game can then load and use as a file list. Client-side JavaScript has no capability of doing this, so crank out your php / ruby / python / perl / whatever. Fenopiù 1 Link to comment Share on other sites More sharing options...
Kobaltic Posted January 29, 2015 Author Share Posted January 29, 2015 Yeah I am using php in my back end. I figured I would have to go this route. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts