My best idea at the moment would be to use an iframe to put form in and host it on my API site. My ancient experience with iframes just reminds me can only be sized in pixels. Not sure if this has changedā¦
Ok, trying the iframe way. Not getting iframe to work on ios yet, but at least in browser view. Problem with this is file upload of server connect does not work with site links like this:
@George Is this set or can it be allowed somehow? Without this option I cannot see how one can have file uploads on a mobile app developed using Wappler and the frameworksā¦
Got iframe working wth page hosted with form on the site hosted on domain with the db as well as the folder images upload to using rlative link for upload. Not the ideal, but hopefully server connect and app connect mobile support will get better over time
I think I will write an article about my first app build experience on medium for the others. That will cover everything from preparing the environment to roadblocks, niceties, proās conās, basically the good, the bad and the ugly. Just gimme 2 - 3 weeks to finish the project. There will be a lot of writing on wappler coming towards ebd of the year. Just want to see the dust settle.
Normally file upload from a regular form should work fine also in Cordova. Maybe it was some mixure of SSL certificates that you had? So the form post was not accepted
If your form just post to the external Server Connect extension handling to file upload it should be all fine.
Ok, will try again changing what I can. Big problem is that cloudways was the only shared hosting platform I could find that would open up the domain for external javascript requests. So I can't reallt test this on another domain since all my other hosting options are closed. Does anybody have suggestions and experience on cross domain javascript requests. Cloudways works fine for me, except the form post obviously...
I tried this, but my hosting provider blocks these requests from external sources for security reasons. One was not willing to open it up. I requested from cloudways and they did. Then it workedā¦
Thanks @George I read through the posts and it makes sense. So I moved db and API files to my original server, changed connection properties on API site and reconnected app to API site to include new links for server connect actions.
I now get a 500 internal server error.
It does work using hosted db in API project and local files though, but not as APP in browser app or packaged as ios app loaded on a phone