私のフォームには次のものがあります。
<input type="file" name="data[Speciality][background_image]" id="background_image" class="hide">
これは、コントローラーで「キャッチ」された要求データです。
public 'data' =>
array (size=3)
'modified' => string '0' (length=1)
'Speciality' =>
array (size=2)
'name' => string 'addfsdfsdf' (length=10)
'background_image' => string 'test.jpg' (length=8)
ご覧のとおり、ファイル名のみが提供され、次のようになります。
[name] => test.jpg
[type] => image/jpeg
[tmp_name] => C:\server\tmp\php5A.tmp
[error] => 0
[size] => 560
なにが問題ですか?