Store files with file repository type on server
Error handling for extract function. Remove stored files if error occures.