I'm using the S3 Upload to AWS. I've set it all up in AWS, created a test page, uploaded files and everything works brilliantly.
Happy Days.
So now I've put the S3 Upload Control object within my app...
... and it doesn't work!
The problem seems to be that the variable state is not available... so since state.idle is not there, the Browse button doesn't appear. So I tried removing the dmx-show on the button, but it seems the s3upload1.select() is also not working.
The S3 Upload Control is not in a modal or form, so I can't see that state needs any prefix.
Can you suggest what I try to get it working please? I'm currently using Wappler 3.5.5.
Well have you added the s3 component on the actual app page?
You can’t just copy bits of code from one page to another without the actual components files not being added on the page.
@Teodor, please don't make assumptions about what I have done and criticise my actions without asking me first... that leaves me feeling rather irritated!
I didn't copy the code, I added the S3 Upload Control from the menu system.
However I added it to an include file rather than the main index.php, and I can see now that Wappler didn't add the script line which I have now found in the test file:
The server model is PHP and it was added on an include page. The code Wappler added on the page is below… so the include header makes some reference to the s3upload, but the actual script line never appeared anywhere.
If your main page (index.php) was open in Wappler, you probably did not save it - as when it’s open when you add stuff in the content page it adds the scripts there but you need to save it as well.
Actually, I may be wrong in my last statement… I can’t be sure if it added it or not since I can see that Wappler will delete a double add… so it may have been there when I manually added it, and as you say, it may be that I just didn’t save the index.php file.