[lib] added 'upload file' func