separate upload_file and upload image_data