Our users upload files to our S3 bucket.
We need to download these files onto local computers.
We have an operations portal, and we would like for there to be a button that essentially triggers the terminal to open and begin to SFTP these files into local storage so that our operators can verify that these upload were successful and maintained integrity.
Is this possible? We are running PHP backend and JavaScript on the front-end.
I thought perhaps shell_exec
could be helpful (running in PHP), but am I wrong in saying that running this command when our PHP is on our server will not hit our local storage at all? Or am I massively misunderstanding this, because I feel like that could cause some serious security issues.
Do I need a desktop-based application for this?
As it stands, our workaround is to allow our operators to copy and paste the specific command to download the files in S3. It just seems a bit manual and I feel there must be a better way!