laptop and a wrench

不具合

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

最後に公開された状態: January 22, 2019 ArcGIS API for JavaScript
不具合 ID 番号 BUG-000118713
送信されましたDecember 10, 2018
最終更新日June 5, 2024
適用対象ArcGIS API for JavaScript
見つかったバージョン4.9
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスNon-Reproducible

参考情報

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.

対処法

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");

再現の手順

不具合 ID: BUG-000118713

ソフトウェア:

  • ArcGIS API for JavaScript

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動