Implement fog for file uploading

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