Uploading images directly to S3 gives error

Uploading an image to S3
I need to upload the file before uploading it to S3. Can I upload it directly to S3?
I haven't been able to do it directly yet.

Thanks for your help.

Agradeço pela ajuda

Yes, you can do this using the App Connect S3 upload component:

1 Like

Hi @Teodor
Thank you for your help. My S3 is on Hetzner.
Do you have a tutorial on how to set it up on Hetzner?

Thank you.

It doesn't matter where the S3 is located, simply select your provider when setting up the S3.

I'm having this error

parser.js:729 Error calling method in expression: s3upload1.upload() ReferenceError: upload is not defined
at s.upload (s3Upload.js:271:1)
at s.upload (s3Upload.js:65:1)
at Object.keys.forEach.data. (BaseComponent.js:470:1)
at parser.js:727:1
at parser.js:469:1
at dmx.parse (parser.js:404:1)
at HTMLButtonElement. (on.js:14:1)
at HTMLButtonElement.a (events.js:280:1)

Check the browser dev tools console for missing files and make sure all the required js files are uploaded to your server.

The AI ​​found the problem. Check if it's a bug on your side, because I just followed the script.

Below is the error.

Issue identified and fixed.
The error was occurring in the S3 upload component. In the upload() method of the s3-upload component, there was an incorrect reference to the variable upload.file.name when it should have been this.file.name.
What was fixed:
File: public/dmxAppConnect/dmxS3Upload/dmxS3Upload.js
Line: Approximately line 271 (in the minified code)
Issue: encodeURIComponent(upload.file.name)
Fix: encodeURIComponent(this.file.name)

Fixed in Wappler 7.3.3

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.