A sample of image upload preview with File API