Fixed assignment in conditional bug. RAW uploads work now maybe? Thanks to @benjie on digistump.com forums