Implement fog for file uploading

@houndci @cgruppioni @georgetmayorga
Line is too long. [82/80]