Quote:
Originally Posted by cbk1994
Can you explain how you would limit the files they can upload? I'm not too keen on players uploading .exe files, for example.
|
PHP Code:
temp.allowed = {"graal","nw","gani","png","gif","mng"}; //still don't get mng :\
temp.t = fileName.tokenize(".");
if (!(t[fileName.size()-1] in allowed)) {
//stuff code stuff
}
Pretty sure that could be used, just replace fileName with whatever you're using to get the file name. Not 100% on that since I don't know if it's possible to check the name.