You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's currently running on my TrueNAS Scale server and I was wondering if it's possible to automatically import all files in a special directory? That way I don't have to upload them to my own server (were the files already are anyway). It also helps my workflow for releasing large files to my customers.
The text was updated successfully, but these errors were encountered:
I'm not likely to support any kind of importing from the filesystem, as it's too far outside the scope of what I'd like PicoShare to be, but there are ways of auto-importing a directory that might work for you instead.
Copy the ID portion of the guest link (the last part of the URL, after the /g/)
Open a bash terminal session
Navigate to the directory you want to upload
Run the following snippet:
PICOSHARE_BASE_URL="http://127.0.0.1:4001"# Replace with your PicoShare server's address
GUEST_LINK_ID="gi7g6t9UcBCX6jv4"# Replace with your guest link IDforfilein*;do
curl -F "file=@${file}""${PICOSHARE_BASE_URL}/api/guest/${GUEST_LINK_ID}"done
That will iterate through your files and import them to PicoShare.
Awesome work on Picoshare!
It's currently running on my TrueNAS Scale server and I was wondering if it's possible to automatically import all files in a special directory? That way I don't have to upload them to my own server (were the files already are anyway). It also helps my workflow for releasing large files to my customers.
The text was updated successfully, but these errors were encountered: