S3 Upload fails without repeat on File Upload step

Wappler Version : 4.7.1
Operating System : Ubuntu
Server Model: Node
Database Type:
Hosting Type: Docker

Expected behaviour

Put File to Amazon S3 should work without a repeat.

Actual behaviour

Unless there is a repeat added to the File Upload step a missing key/missing Bucket error is displayed in the browser console, the file is uploaded to the path directory but is not then uploaded to Amazon S3.

How to reproduce

  • Create a form add a file/Dropzone field.
  • Create your Server Action.
  • Add File Upload, configure as normal.
  • Add S3 Connector.
  • Add S3 Put File.
  • Select Bucket, Key, and Path.
  • Preview page and try to upload the file to S3.
  • Fail.

To rectify a repeat must be added to the steps upon the File Upload, the Bucket, Key, and Path must be selected from the repeat. Without doing this the upload fails. Fair few hours wasted scratching ones head until hair fell out and scalp begun to bleed… This is for a single file and not multiple files. So should be no need for a repeat.

:wink:

Dave, it looks to me you are using a multi upload file input and you are trying to use without a repeat.
That’s not possible - multi upload file inputs require a repeat after the repeat.

Its not a multi-upload Teodor it is for a single file specifically with Validation for maximum of one file. Thankfully have done this a fair few times so am sure to uncheck multiple in the file input field, and likewise server side.

The validation does not change the input type.
Can you paste your input code please, as well as a screenshot of how is its POST variable defined in your server action?

<div class="row gx-3">
                                    <div class="col">
                                        <div class="mb-3">
                                            <input type="file" class="form-control-file" id="inp_merchantLogo" name="merchantLogo" aria-describedby="inp_merchantLogo_help" is="dmx-dropzone" data-rule-maxfiles="1" message="Drop your Merchant logo here or click to upload." data-rule-minfiles="1" required="">
                                        </div>
                                    </div>
                                </div>


is="dmx-dropzone"
But that is a multi upload field :slight_smile:

OK understood, we use it as it fits in with the aesthetics. Never realised it was purely for multiples as can uncheck the multiple option, which we had done, and no array in the Action variables either.

multiuncheck

Thanks Teodor, regardless all works fine now.