Implement fog for file uploading

@houndci @cgruppioni @georgetmayorga
You have a syntax error on this line.