Support uploading both images and regular files