I was wondering if it would it be possible to add support for native file uploading in Webviewestras2?
Erel, posted code that can do this:
https://www.b4x.com/android/forum/threads/upload-files-with-webview.98623/
But it replaces the webchromeclient, making it incompatible with webviewextras. Since my app uses many features of WVE, I need to be able to continue using it.
My app displays a third party website, so I have no control over the files/pages on the website, so I can't use okHTTPutils2 to do the file uploading because I cant place a custom "upload receive" webpage on that thirdparty site to receive the file.
I need to be able to upload a file from my app to a thirdparty site that has a webpage with a typical "Browse" button on it. And I want to have the thirdparty site think that the file my app uploaded was uploaded by a normal user clicking on the "Browse" button on the webpage using a normal browser. This is why I like Erels code because it works with the normal "Browse" button as found on many websites and intercepts the "browse" event, which then allows me to do some custom file selection/generation, then my app could upload the file to the thirdparty webpage without any issues - And the third party webpage will handle the upload just like it would for any other file uploaded by a user using a normal browser.
So, is there a way to use WVE2 to upload a file to a thirdparty website like Erel's example does?
Erel, posted code that can do this:
https://www.b4x.com/android/forum/threads/upload-files-with-webview.98623/
But it replaces the webchromeclient, making it incompatible with webviewextras. Since my app uses many features of WVE, I need to be able to continue using it.
My app displays a third party website, so I have no control over the files/pages on the website, so I can't use okHTTPutils2 to do the file uploading because I cant place a custom "upload receive" webpage on that thirdparty site to receive the file.
I need to be able to upload a file from my app to a thirdparty site that has a webpage with a typical "Browse" button on it. And I want to have the thirdparty site think that the file my app uploaded was uploaded by a normal user clicking on the "Browse" button on the webpage using a normal browser. This is why I like Erels code because it works with the normal "Browse" button as found on many websites and intercepts the "browse" event, which then allows me to do some custom file selection/generation, then my app could upload the file to the thirdparty webpage without any issues - And the third party webpage will handle the upload just like it would for any other file uploaded by a user using a normal browser.
So, is there a way to use WVE2 to upload a file to a thirdparty website like Erel's example does?
Last edited: