By default, WordPress Media Uploader Gallery picks up images from the /uploads folder as given in wp-config file.
I have a requirement where instead of uploading to this WordPress location, I need to upload to a remote server wherein I need to store these images and then display all the images available on the remote server in the same WordPress gallery.
Here is a plugin which does exactly what I want but for Amazon S3 bucket. https://wordpress.org/plugins/amazon-s3-and-cloudfront/
As shown in the video in the above plugin description, when the user uploads the image, it automatically stores it in the remote S3 location and then shows the same in the WordPress Gallery, basically leveraging all the existing Media upload features.
I need to do something similar, but instead of S3, need to hit my remote server and retrieve and show those uploaded images in the Gallery.
Any hooks/actions available to implement this? Basically seamlessly hook into WordPress Media gallery.
EDIT: I need to upload it to the remote server using POST and then display all the images from that location.
Any help/lead much appreciated!!