working file upload/download

doesnt seem to eat up memory