CI 묻고 답하기

제목 한글파일명 업로드 에러
글쓴이 cleansugar 작성시각 2009/08/01 09:44:31
댓글 : 1 추천 : 0 스크랩 : 0 조회수 : 31795   RSS

XP IE에서 업로드 라이브러리에 관해 정식 매뉴얼에 있는 소스를 실행해보았습니다.

소스에서 두 뷰의 헤더에는 <meta http-equiv=content-type content="text/html; charset=UTF-8">를 추가했습니다.

그런데 한글파일명을 올리니까 A problem was encountered while attempting to move the uploaded file to the final destination.

에러가 납니다.

print_r($this->upload->data()); 는 다음과 같습니다:

Array ( [file_name] => 가.JPG [file_type] => image/jpeg [file_path] => C:/xampp/htdocs/hello/uploads/ [full_path] => C:/xampp/htdocs/hello/uploads/가.JPG [raw_name] => 가 [orig_name] => 가.JPG [file_ext] => .JPG [file_size] => 94.03 [is_image] => 1 [image_width] => [image_height] => [image_type] => [image_size_str] => )

한글폴더/영문파일명을 업로드하면 잘 됩니다.

뷰를 <meta http-equiv=content-type content="text/html; charset="EUC_KR">로 바꾸면 잘 됩니다.

왜 그러는 거고 어떻게하면 고칠 수 있을까요?

CI버그일까요?

 다음글 오브젝트를 복사하는 방법은? (1)
 이전글 CI 폼검증의 적용현실? (4)

댓글

ぷ~たろ / 2009/08/04 11:37:28 / 추천 0
mb_string 관련 함수 참고 해 보세요.