laptop and a wrench

Erro

FeatureLayer.addAttachment() is returning the HTML response with a feature service hosted on an enterprise environment.

Última Publicação: January 22, 2019 ArcGIS API for JavaScript
Número de ID do Erro BUG-000118713
EnviadoDecember 10, 2018
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for JavaScript
Versão encontrada4.9
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusNon-Reproducible

Informações Adicionais

When using a multi-part post to send the file data, all parameters of the request have to be passed in the body of the request in the correct form. This includes the format (f) parameter which is not to be included in the querystring.

Solução Provisória

Add the following bolded line of code to the HTML form:

<form id="importFileForm">

   Upload a file: <input type="file" name="attachment" id="fileinput">

   <input type="hidden" name="f" value="json">

 </form>

Or if using FormData class use the following code:

let form = new FormData();

form.set("attachment",file);

form.append("f","json");

Etapas para Reproduzir

ID do Erro: BUG-000118713

Software:

  • ArcGIS API for JavaScript

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download