Fixed file upload with function
Changed initial migrate