Implement fog for file uploading

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