Checking a folder every few seconds with a sleep loop works, but it wastes CPU and reacts late. The kernel can just tell you when something changes, and inotifywait is the command-line way to ask.
sudo apt install inotify-tools
inotifywait -m -e close_write /srv/inbox
By default the command exits after the first event. With -m it keeps running and prints one line per event. -e close_write limits it to files that were closed after being opened for writing, which is usually the moment an upload is finished and safe to process.
inotifywait -m -e close_write --format '%w%f' /srv/inbox | while read -r f; do echo "new file: $f"; done
The --format option cuts the output down to the path, which is easier to feed to a loop.
Two caveats from the man page. The close_write event does not prove any bytes were written, only that a writable handle was closed. And inotify watches a folder, not the subfolders below it, unless you add -r. Watching a very large tree recursively can hit the kernel limit on watches, so keep the watched folder small. A sleep loop is still fine for a one-off job, but for anything that runs all day this is gentler on the machine.
Further reading: inotifywait(1) manual