1
I need to know how to manipulate server return to show that the uploaded file was not saved!
The server return object:
public class JsonReturn
{
public bool Ok { get; set; }
public int LinhasAfetadas { get; set; }
public string Mensagem { get; set; }
public string Log { get; set; }
public object Dados { get; set; }
public int Id { get; set; }
}
Below Follow the call of the Dropzone:
<script type="javascript">
Dropzone.options.dropzoneForm = {
dictDefaultMessage: "Arraste os recibos até aqui, ou clique para selecionar!",
dictInvalidFileType: "ERRO: Tipo de arquivo não permitido!",
acceptedFiles: "application/pdf",
success: function() { /* COMO DEVO TRATAR O RETORNO FAZENDO QUE SEJA EXIBIDO O "X" E O ERRO PERSONALIZADO ?*/},
};
</script>
Start by also publishing what you have already tried (relevant code), also saying the problem that occurs, and what you expect sff. Welcome to Stack Overflow PT
– Miguel
Jewel... Thank you!
– Maurício Júnior