I have one function to upload an image.
I need to save image into different domain.
So when client call my API, pass in the photo as multipart type, then I need to save it into different domain.
Does my code below Workable? I mean will it save into the stat.abc.com/userpt/ OR will hit error ?
Note: below piece of code running in app.abc.com domain. But both domains are in the same server.
please help