Implement fog for file uploading

@houndci @cgruppioni @georgetmayorga