ajbdev / phpsc2replay

Automatically exported from code.google.com/p/phpsc2replay
0 stars 1 forks source link

Error parsing uploaded file, make sure it is a valid MPQ archive! #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Im trying to update my phpsc2replay 1.20 to phpsc2replay 1.30, and when i 
replace the files give this error: Error parsing uploaded file, make sure it is 
a valid MPQ archive!

Original issue reported on code.google.com by fel...@juncken.com on 19 Nov 2010 at 9:50

GoogleCodeExporter commented 8 years ago
Unfortunately there's a slight change to the returns values of getFileType() 
and getState() in the MPQFile class to get rid of define statements. Just make 
sure that your script is updated to check the return values correctly.

getState() now returns true if the headers were parsed properly (false 
otherwise) and getFileType() returns a string of either "SC2replay", "SC2map" 
or "Unknown" based on what it thinks the mpq file is.

If you are already checking the return values correctly, see if the problem is 
present at the test page at 
http://kuukkeli.ath.cx/ooaemkee/SC2Replay/upload_file.php as well.

Original comment by lauri.vi...@gmail.com on 19 Nov 2010 at 11:24