We have created a new extension which we want first to test this in a Sanbox environment. We do not have the option from the extension page to upload the file. We have only this option in the live environment.

We have created a new extension which we want first to test this in a Sanbox environment. We do not have the option from the extension page to upload the file. We have only this option in the live environment.
There's no actually the possibility to upload a .app file on the online sandbox environment (this is something that I've personally asked to the team).
Actually you can directly deploy your app to the online sandbox via Visual Studio Code.