add upload file with lifecycle and Imagine library