Fk10 - file and image upload functionality

Move function body outside.