Wappler 3.2.2
Windows 10pro
how to recover s3 image url?
putFile1.ObjectURL does not work
Wappler 3.2.2
Windows 10pro
how to recover s3 image url?
putFile1.ObjectURL does not work
I made some adjustments in the code which you may test. Place file in dmxConnectLib/modules
.
s3.zip (1.2 KB)
What does it return if you use putFile1['ObjectURL']
as expression for the value?
Getting an issue on NodeJS, too - trying to use the output of the Put File - it just creates [Object] [object] when I try to input the value into the DB.
To be precise, if I use the put file output this is the url it creates when adding the dynamic output to the url string:
https://websitename-public-live.s3-us-west-1.amazonaws.com/user-avatar/[object Object]
with a little effort I managed to do so
putFile1.values()[0].ObjectURL
I’m not sure if it is a bug or not, but it seems that you at least have a solutions. Could be some strange php object that is being returned from the s3 Api that the expression parser doesn’t like.
Finally figured it out, it was indeed some special class that was returned that our parser could not work with. Luckily they provided a method to convert their class into a native php array.
Here the updated file which has some other fixes also and will be included in the next Wappler update.
s3.zip (1.2 KB)
I don’t believe the NodeJS version had any of the issues that the PHP version had. If there are problems in the NodeJS version also then please post a bug report.
Ok. I’ve raised it a few times, but not a specific bug report - so i’ll do that this morning.
Fixed in Wappler 3.3.2
This topic was automatically closed after 31 hours. New replies are no longer allowed.