Hi everyone,
I have a rather strange error on a feature that I have managed dozens and dozens of times without any problems.
I have a form with a file upload field
<form id="Frm" is="dmx-serverconnect-form" method="post" action="/api/pacchetti/create-update" dmx-on:start="Preload.show()" dmx-on:error="Preload.hide();Notification.danger(lastError.response)" dmx-on:unauthorized="Browser.goto('/')" dmx-on:invalid="Preload.hide();Notification.danger(lastError.response.getValueOrKey('error'))" enctype="multipart/form-data">
<div class="form-row">
<input class="form-control" id="inp_token" placeholder="---" name="token" dmx-bind:value="sessionStorage.data.authtoken" type="hidden">
<input class="form-control" id="inp_id" placeholder="---" name="id" type="hidden">
<div class="form-group col-12">
<label for="inp_imageurl" class="custom-label">Immagine</label>
<input type="file" class="form-control-file" id="inp_imageurl" name="imageurl" accept=".jpg, .png, .jpeg" data-msg-accept="Solo immagini in formato {0}" data-rule-maxtotalsize="5000000" data-msg-maxtotalsize="Limite massimo 5MB">
</div>
When I send the form I see the binary file sent in post to my API correctly
In the API I inserted a response that should track the name of the file but the result is always null
I can't figure out where the problem is, do you have any suggestions on how to solve it?