I created my Java API and I'm implementing a video upload, my Java API is working perfectly, how is it behaving?
This is a video file, where it will put the title, description and upload of the video, by selecting the video it returns a Json , as in the model below;
{
"nome": "Comercial H2O! - Chutar o Balde.mp4",
"contentType": "video/mp4"
}
What I need to solve is that by selecting the video the component automatically fires, when it should only fire when the form is submitted.
See how the component is below;
<div class="ui-g-6 ui-md-3 ui-fluid">
<label>URL</label>
<p-fileUpload name="files" mode="basic" auto="false" maxFileSize="5000000000000000000000000000"
chooseLabel="Anexar" accept="video/*,application/*"
[url]="urlUploadAnexo"></p-fileUpload>
</div>
By documentation by placing auto as true day to upload automatically, but as it's like false I think it was not to shoot.
How do I get around this?