Fixed file and image upload