FREE and best way for me is installing a webserver in your local machine and share everything via Safari browser on the iPhone, this are the steps YMMV
sudo apt install nginx php-fpm git
mkdir ~/iphoneFiles
sudo nano /etc/nginx/sites-available/default
Delete everything in there and put something like this, remember to modify <YOUR-USER> and if necessary change the php version php7.4-fpm.sock
server {
listen 80;
server_name localhost;
root /home/<YOUR-USER>/iphoneFiles/elFinder;
index elfinder.src.html;
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
}
}
Installing https://github.com/Studio-42/elFinder
cd ~/iphoneFiles
git clone https://github.com/Studio-42/elFinder.git
Configuring elFinder
mv elFinder/php/connector.minimal.php-dist connector.minimal.php
Setting the (probably) right permissions for the upload folder
sudo usermod -a -G www-data $USER
sudo chown -R $USER:www-data elFinder/files/
sudo chmod a+rwx,o-rwx,ug+s elFinder/files/
ln -s ~/iphoneFiles/elFinder/files/ ~/Documents/iphoneFiles
Making nginx to load the new set directives
sudo service nginx reload
Now get your local network IP
hostname -i | awk '{print $1}'
Enter with your iPhone to that IP and start uploading pictures or whatever you want
note: you will need to modify elFinder setting to allow upload of all types of files
sed -i 's/.*uploadDeny.*/'uploadDeny' => array(''),/' elFinder/php/connector.minimal.php
sed -i 's/.*uploadDeny.*/'uploadAllow' => array('all'),/' elFinder/php/connector.minimal.php
If you did everything good you should have your files in:
~/Documents/iphoneFiles