I would like to use the Share sheet to send a photo to a remote server. The following script is my attempt but clearly my use of appex.get_image is wrong but it also fails with appex.get_filepath. How do I properly specify the file from the sharesheet for the sftp.put? I'd also like it to work if I select multiple photos.
```import paramiko
import appex
hostname = 'ipaddress'
password = 'password'
source = appex.get_image()
dest = 'destfilepath'
username = "username"
port = 22
try:
t = paramiko.Transport((hostname, port))
t.connect(username=username, password=password)
sftp = paramiko.SFTPClient.from_transport(t)
a = sftp.put(source, dest)
finally:
t.close()
```