Move Plug.Upload to a struct