我有這樣的代碼:Laravel4:文件上傳
$file = Input::file('image');
$destinationPath = base_path().'public/upload/slider/'; // The destination were you store the image.
$filename = $file->getClientOriginalName(); // Original file name that the end user used for it.
$mime_type = $file->getMimeType(); // Gets this example image/png
$extension = $file->getClientOriginalExtension(); // The original extension that the user used example .jpg or .png.
$upload_success = $file->move($destinationPath, $filename); // Now we move the file to its new home.
// This is were you would store the image path in a table
和文件名在我的文件夾上傳是: 公共/上傳/滑塊/的Folder.gif公共/上傳/滑塊/ footer_left_line.jpg公共/上傳/ slider/phpJtC4Jj public/upload/slider/folder_o.gif public/upload/slider/mail.gif public/upload/slider/post_photo_icon.png 您對這個問題有什麼看法?
請您詳細描述問題嗎? _(從一開始,看起來這只是一個帖子,末尾有可能是無關的問題......)_ – summea