I'm planning to create an web file upload to sharepoint for a web application currently under development . The idea is the user would provide the endpoint to his sharepoint server, provide username/password and the app would get a list of the folders in his document library. User then would select where to upload document, provide the file and the tool would perform the upload. The sharepoint endpoint is not known (is user input). We can assume will be used with valid endpoints.
Authentication will be oauth based. App is going to be in php, so probably would need to access sharepoint web services, but not sure what functionality I should expect, my question is: Is there a way to achieve this?. I'm open to any suggestion.