Implemented uploading\downloading files of different types (Kostil version)