<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tyoshikawa1106</author_name>
  <author_url>https://blog.hatena.ne.jp/tyoshikawa1106/</author_url>
  <blog_title>tyoshikawa1106のブログ</blog_title>
  <blog_url>https://tyoshikawa1106.hatenablog.com/</blog_url>
  <categories>
    <anon>Salesforce</anon>
    <anon>Force.com</anon>
  </categories>
  <description>Visualforceではapex:inputFileタグをつかってファイルアップロードを実現できますが、RemoteActionで添付ファイルを登録したい場合、JS側の処理で対応する必要があります。 まずアップロードファイルの選択は普通のinputFileタグを使って行います。 &lt;input type=&quot;file&quot; name=&quot;attamentFile&quot; id=&quot;attamentFile&quot; /&gt; ファイルの存在判定、種別判定はこんな感じです。 var uploadFile = document.getElementById('attamentFile'); var file = upload…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftyoshikawa1106.hatenablog.com%2Fentry%2F2016%2F01%2F26%2F033140&quot; title=&quot;SFDC：RemoteActionで添付ファイルを登録する方法 - tyoshikawa1106のブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/t/tyoshikawa1106/20160126/20160126032712.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-01-26 03:31:40</published>
  <title>SFDC：RemoteActionで添付ファイルを登録する方法</title>
  <type>rich</type>
  <url>https://tyoshikawa1106.hatenablog.com/entry/2016/01/26/033140</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
