Web and desktop support for file upload and download in Flutter

10 min readJul 19, 2023

Managing conditional imports and CORS issues

Uploading and downloading your cat pics

Here’s what I want to do:

  • The user chooses a file and uploads it to a server.
  • The user downloads a file and chooses where to save it.
  • Both of these tasks should support web and desktop.