<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rasukarusan</author_name>
  <author_url>https://blog.hatena.ne.jp/rasukarusan/</author_url>
  <blog_title>ハイパーマッスルエンジニア</blog_title>
  <blog_url>https://www.rasukarusan.com/</blog_url>
  <categories>
    <anon>Javascript</anon>
  </categories>
  <description>現象 Next.jsで画像アップロードすると、アップロード処理がpendingで止まってしまう。 アップロード処理がpendingになる コードは下記。エラー判定はなどは飛ばしているが、FormDataをPOSTするシンプルなやつ。 pages/Index.tsx export default function Home() { const onChange =(e: any) =&gt; { const file = e.target.files[0] const body = new FormData(); body.append('image', file); fetch('/api/uplo…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.rasukarusan.com%2Fentry%2F2023%2F01%2F15%2F105946&quot; title=&quot;Next.js@12.3.2で画像アップロードできないのはmiddleware.tsがあるせいだった - ハイパーマッスルエンジニア&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>https://cdn-ak.f.st-hatena.com/images/fotolife/r/rasukarusan/20230115/20230115110650.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-15 10:59:46</published>
  <title>Next.js@12.3.2で画像アップロードできないのはmiddleware.tsがあるせいだった</title>
  <type>rich</type>
  <url>https://www.rasukarusan.com/entry/2023/01/15/105946</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
